oracle:
select * from a where time> to_date('1990-09-23','yyyy-mm-dd');
sql server: 
select * from a where time> cast('1990-09-23' as datetime);
或者
select * from a where time> convert(datetime,'1990-09-23');

解决方案 »

  1.   

    多谢bzszp,很高兴您回答我的问题。
      

  2.   

    access
     select * from a where time> '#1990-09-23#';
      

  3.   

    谢谢,access中用#,还用加'吗?
      

  4.   

    sql server 好象这样也能写
    select * from a where time> '1990-09-23'
      

  5.   

    在oracle中,字符串转换成日期,楼上已经说了,
    日期时间转移成字符串,用: to_char(sysdate,'YYYY-MM-DD HH24:MI:SS')