使用以下语句:O_CHAR(pubtime,‘yyyymmdd HH:mm:ss‘),例如:
select id,TO_CHAR(pubtime,‘yyyymmdd HH:mm:ss‘),content from bj_ref.gz_twinfo_ref where user_id=2603 and TO_CHAR(pubtime,‘yyyymmdd HH:mm:ss‘)>=‘20140704 20:58:42‘ and author =‘南方日报‘ order by id asc;
即可。
时间: 2024-10-08 10:34:26