查询从teradata时间戳返回特定日期(6) [英] query to return specific date from teradata timestamp(6)

查看:24
本文介绍了查询从teradata时间戳返回特定日期(6)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从 teradata timestamp(6) 字段中搜索特定日期,例如:2013-10-22"?

How can i search for a particular date for eg: '2013-10-22' from teradata timestamp(6) field?

sel * from table A
where date = '2013-10-22';

我尝试了上面抛出错误的查询.请帮忙!

I tried the above query which is throwing error. Please help!

推荐答案

你可以这样试试:-

sel * from table A
where date = date '2013-10-22';

由于采用 ANSI 标准格式(必须以关键字 DATE 开头)

Since in ANSI standard form (must be preceded by the keyword DATE)

查看这个

这篇关于查询从teradata时间戳返回特定日期(6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆