大家好,关于update set select from字段不存在很多朋友都还不太明白,不过没关系,因为今天小编就来为大家分享关于sql语句 update A set aa=select aa from B where <<====大概就这个意思(这样做不行)的知识点,相信应该可以解决大家的一些困惑和问题,如果碰巧可以解决您的问题,还望关注下本站哦,希望对各位有所帮助!
本文目录
- sql语句 update A set aa=select aa from B where <<====大概就这个意思(这样做不行)
- update 表A set 表A.字段1=(select 表B.字段1 from 表B where 表B.字段2=表A.字段2 )
- SQL语句,如果update的内容不存在,如何通过触发器禁止修改.
sql语句 update A set aa=select aa from B where <<====大概就这个意思(这样做不行)
这样试试 update A set aa=(select aa from B where 条件语句) where 条件语句 括号内的值必须一个
update 表A set 表A.字段1=(select 表B.字段1 from 表B where 表B.字段2=表A.字段2 )
不更新A字段,也就是相当于更新为字段本身,用isnull或case when之类
SQL语句,如果update的内容不存在,如何通过触发器禁止修改.
用一个SQL语句就能完成,干嘛用触发器update 表 set 字段=新内容 where stu_id not in (select stu_id from stud_info)
关于update set select from字段不存在到此分享完毕,希望能帮助到您。