0
我一直在尋找一段時間,我不確定這是否允許在MySQL中。插入語句中的多個Select語句
我知道這是允許在mysql中
Insert into 'table' (column1, column2, column3) Select val1, val2, val3 From sometable
而且這個
Insert into 'table' (column1, column2, column3) Values (val1, val2, val3), (val1, val2, val3)
我不知道這是否儘管允許:
Insert into 'table' (column1, column2, column3) Select val1, val2, val3 From sometable, Select val1, val2, val3 From sometable
顯然這給了我一個錯誤,是允許在MySQL?
嘗試'select .... UNION ALL select ...'只是一個預感,從未嘗試過 –