筆記之:
- --同步兩個數據庫相同名字的ID
- USE DB_B
- update table_B set table_B.USERID=A.USERID
- from DB_A.dbo.table_A A --A爲table_A別名
- where A.UNAME=table_B.UNAME