1、替代inner join, left join(*=), right join(=*)
   select A.UserID, B.WorkFlowStatus from A ,B B where A.UserID=B.UserID
   这样就可以替代Inner join
   select A.UserID, B.WorkFlowStatus from A ,B B where A.UserID*=B.UserID
   通过*=或=*替代

   2、update的多种格式

   表A有UserID, WorkFlowStatus 表B中有UserID, update A.UserID=3的WorkFlowStatus为A1
   update U set u.WorkFlowStatus='A1'
   from UserLicense U
   inner join UserInformation I on U.UserID=I.UserID where U.ID=3
   小结:其实update中也可以使用Innser join来约束条件的

相关文章:

  • 2021-09-14
  • 2021-11-18
  • 2021-10-15
  • 2022-02-19
  • 2021-07-25
  • 2021-11-14
猜你喜欢
  • 2021-05-23
  • 2021-09-09
  • 2022-02-24
  • 2021-10-17
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
相关资源
相似解决方案