社区
MS-SQL Server
帖子详情
update 语句中不能用别名吗?
mahongxi
2005-05-19 11:42:15
update t wfSteps t set t.id = 0 where t.id = 0 -- 不行
update wfSteps t set t.id = 0 where t.id = 0-- 不行
update wfSteps set id = 0 where id = 0 --OK
...全文
1045
13
打赏
收藏
update 语句中不能用别名吗?
update t wfSteps t set t.id = 0 where t.id = 0 -- 不行 update wfSteps t set t.id = 0 where t.id = 0-- 不行 update wfSteps set id = 0 where id = 0 --OK
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
13 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
mahongxi
2005-05-20
打赏
举报
回复
昏.
haonanernet
2005-05-20
打赏
举报
回复
可以用
Navywang917
2005-05-20
打赏
举报
回复
update t set id = 0 from wfSteps t where id = 0
paoluo
2005-05-19
打赏
举报
回复
别名必须在Update之后
update t set t.id = 0 from wfSteps t where t.id = 0
RainYang
2005-05-19
打赏
举报
回复
update tp
set id=0
from wfSteps tp
where id=0
這樣就OK
这个对
Well
2005-05-19
打赏
举报
回复
當然可以用啊
update tp
set id=0
from wfSteps tp
where id=0
這樣就OK
dazhu2
2005-05-19
打赏
举报
回复
别名申明要放后面吧
dazhu2
2005-05-19
打赏
举报
回复
试一下
xiaomeixiang
2005-05-19
打赏
举报
回复
哦,寫錯了,應該這樣寫
update t set id = 0 from wfSteps t where id = 0
xiaomeixiang
2005-05-19
打赏
举报
回复
update t set t.id = 0 where t.id = 0 from wfSteps t
zjcxc
元老
2005-05-19
打赏
举报
回复
--这种应该是ACCESS支持的用法
update wfSteps t set t.id = 0 where t.id = 0-- 不行
zjcxc
元老
2005-05-19
打赏
举报
回复
update t set id = 0 from wfSteps t --别名这样用法
where id = 0 --OK
lypzl
2005-05-19
打赏
举报
回复
学习
SqlServer
中
批量
update
语句
标题所提到的"SqlServer
中
批量
update
语句
"就是一个很好的例子,它展示了如何根据两个表之间的关联字段进行数据同步。 描述
中
提到了两张表——S_PERSON和S_USER,我们需要将S_USER表
中
的ACCOUNT字段更新为S_PERSON表...
sqlserver
中
delete、
update
中
使用表
别名
和oracle的区别
以下便是关于在SQL Server和Oracle
中
使用DELETE和
UPDATE
语句
时对表
别名
使用的详细说明。 首先,我们需要注意的是,在使用DELETE
语句
进行数据删除操作时,表
别名
的使用在Oracle和SQL Server
中
是有区别的。在Oracle...
sql和MySQL的
语句
执行顺序分析
今天遇到一个问题就是mysql
中
insert into 和
update
以及delete
语句
中
能使用as
别名
吗?目前还在查看,但是在查阅资料时发现了一些有益的知识,给大家分享一下,就是关于sql以及MySQL
语句
执行顺序: sql和mysql执行顺序...
sql
语句
生成器+支持各大数据库+说明书
SQL
语句
生成器的特色 支持几乎所有类型的数据库, 包括小型(桌面)数据库:Fox DBF、Microsoft Execl、Text、Borland ...支持将SQL查询
语句
,替换为插入(Insert into)和更新(
Update
)
语句
附属工具内嵌入Delphi IDE
sql
中
的
Update
语句
为什么
不能
用表的
别名
我们一直写
Update
语句
都是这样的:
UPDATE
[TABLE] SET TID=1,TNAME='Name',TClass=1 WHERE ID=10 这样写很简单,也很方便,所以就一直这样用了,今天在写的时候有一个子查询,想用
别名
来区别,就跟着这种逻辑这样写...
MS-SQL Server
34,838
社区成员
254,632
社区内容
发帖
与我相关
我的任务
MS-SQL Server
MS-SQL Server相关内容讨论专区
复制链接
扫一扫
分享
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章