How to correctly make `WITH` SQL query with 2 other tables using the updated table?

前端 未结 0 1855
予麋鹿
予麋鹿 2020-12-30 16:31

I want to insert into 1 table and use the resulting id in 2 other tables. For 1+1 table I would do:

WITH inserted AS (
  INSERT INTO whatever1 (
    whatever
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题