如何更新一行?
我在SQL Server数据库中有34行f.e SYSTIMESTATE (14.10.2014 08:01:15:000)
,我将用(04.11.2014 08:01:15:000)
替换它
我该怎么做?使用UPDATE
声明?
以下是SELECT
声明:
select * from EXDOCS where SYSTIMESTATE = '14.10.2014 08:01:15:000'
答案 0 :(得分:1)
UPDATE EXDOCS
SET SYSTIMESTATE = '04.11.2014 08:01:15:000'
WHERE SYSTIMESTATE = '14.10.2014 08:01:15:000'
还要了解如何自行提出解决方案:http://www.w3schools.com/sql/sql_update.asp
答案 1 :(得分:1)
是的,update
是你想要的:
UPDATE EXDOCS
SET SYSTIMESTATE = '04.11.2014 08:01:15:000'
WHERE SYSTIMESTATE = '14.10.2014 08:01:15:000'
答案 2 :(得分:1)
UPDATE EXDOCS
SET SYSTIMESTATE = '04.11.2014 08:01:15:000'
WHERE SYSTIMESTATE = '14.10.2014 08:01:15:000'