update table1 set a.ggg=b.ggg from table1 a,table2 b where a.ccid=b.ccid;
我这样写有什么错吗 ?请指教
...全文
21410打赏收藏
求一SQL语句,很急
我现在有两张表,table1,table2,关联的字段是id 现在是想把table2中的字段ggg更新到table1中的ggg中 请问,要怎么写 update table1 set a.ggg=b.ggg from table1 a,table2 b where a.ccid=b.ccid; 我这样写有什么错吗 ?请指教