我需要更新整个表的列 [英] i need to update a column entire table
本文介绍了我需要更新整个表的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更新一个列整个表
i需要一个SQL查询
解决方案
试试这个..
更新 table_name 设置 column_name = updated_value
尝试:
UPDATE MyTable SET MyColumn = MyValue如果未指定WHERE子句,则更新所有行。
更新Tablename set [date] = getdate()
i want to update a column entire table
i need a sql query for that one
解决方案
try this..
Update table_name Set column_name=updated_value
Try:
UPDATE MyTable SET MyColumn=MyValueIf you don't specify a WHERE clause, all rows are updated.
Update Tablename set [date]=getdate()
这篇关于我需要更新整个表的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文