update set from where

 SQL Server語法:update  表名  set  更新字段  from  更新表名 ,關聯表名 where  更新條件spa  做用:用一個表的字段去更新另外一張表ci 舉個例子:it 有兩個表test一、test2,如今想讓表test2中對應id 的UserName字段值等於表test1中對應id的name字段值      表test1:    id,name           
相關文章
相關標籤/搜索