Cross-table UPDATE in SQLITE3

后端 未结 4 612
情话喂你
情话喂你 2020-12-10 04:59

In SQL Server, I can do something like this:

UPDATE tbl1 
   SET col2 = tbl2.col2 
  FROM table1 tbl1 
 INNER JOIN table2 tbl2 
    ON tbl1.col1          


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 06:05

    I've discovered this can be done with INSERT OR REPLACE INTO. A little more verbose than T-SQL's equivalent, but just as handy.

提交回复
热议问题