我有一个表area,有字段code,name,我怎样用sql语句写出每条记录都加上今天的日期?如
area name date
.. .. 2003-04-14
.. .. 2003-04-14
.. ..
.. ..
area name date
.. .. 2003-04-14
.. .. 2003-04-14
.. ..
.. ..
解决方案 »
- 我想变个数据库程序,哪个桌面数据库最好?
- 作打发票 类似联纸打印需要控制距离。怎么做。或者用什么控件。
- 为什么不对:test:=((1,2,3,4,5),(6,7,8,9,10),(11,12,13,14,15) ) ???
- 用ado连接远程sybase,谁能给个string?
- 请问为何我使用delphi6时form.alpha会失效
- 关于日期变量的问题。
- 请教模拟串口接收的思路
- 急求各位大虾,文件流的问题!!!!!!
- delphi新人,问个客户端发送图片到用户的问题。
- 整个程序可见的公共变量在什么地方定义?如何引用?
- 请教REPORT报表控件打印问题
- Delphi中能不能象VC那样与VSS紧密结合?
set date=getdate();
update area
set
code=code+convert(varchar(20),getdate())
update area
set code=code+cast(getdate() as varchar(20)),
name=name+cast(getdate() as varchar(20))
或者
select code,name, CONVERT(varchar(10), GETDATE(), 120) from area
select code,name,getdate() from areaoracle:select code,name,sysdate from area