Oracle版本是11.2.0.1,PHP版本5.5.12
尝试了这种PHP查询方式:
DATE字段的字段名是XSSJ
$st = OCIParse($dbconn,"SELECT to_char(syslog.XSSJ,'YYYY-MM-DD HH24:MI:SS') FROM $MH_XW");
请查阅 Oracle 手册!
$st = OCIParse($dbconn,"SELECT to_char(XSSJ,'YYYY-MM-DD HH:MI:SS') as XSSJ FROM $MH_XW");