📜  mysql根据select插入多行 - SQL代码示例

📅  最后修改于: 2022-03-11 15:05:28.400000             🧑  作者: Mango

代码示例1
INSERT INTO table1 (col1, col2, col3, col4, col5) 
SELECT col1,col2,col3,col4,col5 
FROM table2 t2 
WHERE t2.val2 IN (MULTIPLE VALUES) 
AND (Another Conditional);