各位帮忙看下这语句有什么错误
db2吧
全部回复
仅看楼主
level 1
spely111111 楼主
DB2下写了这么句话:select * from hi_psndoc_grpdef1 where year(begindate)=2010 其中begindate是hi_psndoc_grpdef1的一个字段,日期型的。
报“日期时间值的字符串表示法的语法不正确”错误
请教各位,这是什么意思啊?
写成 select year(begindate) from hi_psndoc_grpdef1 就是对的,这是什么原因呢?
急!!
2011年07月21日 06点07分 1
level 1
给2010加上单引号
2011年12月27日 09点12分 2
level 3
db2交流群:21025718
数据库、商业智能BI:db2,sqlserver,oracle,informatica,cognos,SAP BO
2012年03月04日 14点03分 3
1