Update a table using the fields of the other two table, please help me in this

前端 未结 1 1849
长发绾君心
长发绾君心 2020-12-22 05:59

My requirement is to update the description field in table 1 with the description of the table 2 and 3 by concatinating. I\'ll give you the structure below.

table1 -

相关标签:
1条回答
  • 2020-12-22 06:42
    INSERT INTO Table1 (Description)
        SELECT CONCAT(t2.Description, t3.Description) FROM Table2 t2, Table3 t3
        ---- optional join here
    
    0 讨论(0)
提交回复
热议问题