a question about "set"

tsinghua2000 2003-06-18 07:15:12
gentleman:


now, I have a question about set , if only update one data item,
I know how to get the SQL sentence, that is :


for example:

update table set x=12

however, I don't know how to do , if update more than one data item

at same time.


update table set x=12 and set y=10 and set z=19.....

is that right?

who can tell me ........



...全文
34 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
viptiger 2003-06-18
  • 打赏
  • 举报
回复
update table1
set x=12,y=10,z=19

34,594

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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