tp3.2sql改变时间格式2018-05-10取05-10 $listIn=D('api_article as a')->field('date_format( fabutime,\'%m-%d\') as fabutime,d_id as did,title,id')->where(array('did'=>3,'er_id'=>1))->select();…
环境:Oracle 10g,11g 问题重现:PL/SQL中命令窗口下,发现存储过程得到的时间格式不符合预期要求. SQL> select sysdate from dual; SYSDATE ----------- Executed seconds SQL> set serveroutput on SQL> declare pro_date date; begin select sysdate into pro_date from dual; dbms_output.put_line(…