我如何从 teradata timestamp(6) 字段中搜索特定日期,例如:“2013-10-22”?
sel * from table A
where date = '2013-10-22';
我尝试了上面的查询,该查询抛出错误。请帮忙!
你可以这样尝试:-
sel * from table A
where date = date '2013-10-22';
由于采用 ANSI 标准形式(前面必须带有关键字 DATE)
查看this http://www.teradataforum.com/l081007a.htm
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)