Be the princess of myself

查询语句中包含日期

上一篇 / 下一篇  2007-08-30 12:33:09 / 个人分类:数据库及查询语言

select * from table t where to_char(t.列名,'yyyy-mm-dd') = '1900-01-01'

将日期转换为字符型:

select to_char(t.列名) from table t


相关阅读:

TAG: 数据库及查询语言

 

评分:0

我来说两句

Open Toolbar