大哥这是查询分析器中的语句
select * from identify_dindan where indate < 'date()'
显示错误:
从字符串转换为 datetime 时发生语法错误。

解决方案 »

  1.   

    'date()'这是什么?
    你自己写的函数?
      

  2.   

    不是我后面想用函数date()得出今天的日期和前面indate字段做比较
      

  3.   

    你的语句错了
    因该这样子才对 select * from identify_dindan where indate < '2006-07-21'
      

  4.   

    SQL中当前日期的函数为getdate()
    因该这样子才对 select * from identify_dindan where indate < getdate()