select a,b,c,'' dd from t_x类似将字符字段(dd)改为date字段怎么办

blackwh 2003-04-16 04:16:42
table : t_x
column: a,b,c
在dw中使用select a,b,c,'' dd from t_x , 建立一个字符字段
使用select a,b,c,0 dd from t_x , 建立一个数值字段
怎么样建立一个date字段 或其他
...全文
27 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xuyi1979 2003-04-18
  • 打赏
  • 举报
回复
日期型用数据库的自带日期函数
如:
ORACLE
select a,b,c, sysdate from ……

DB2
select a, b, c, current date from ……
madking 2003-04-18
  • 打赏
  • 举报
回复
呵呵,来了
blackwh 2003-04-16
  • 打赏
  • 举报
回复
then...
th820901 2003-04-16
  • 打赏
  • 举报
回复
关注..

752

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧