这是可能的还是我必须列出所有列?
INSERT INTO table_name (column1, **column3**, column2,...)
VALUES (value1, value2, value3,...)
Run Code Online (Sandbox Code Playgroud)
我是否必须按顺序列出所有列并为每个列设置值?
您只需要插入计划插入的列.需要匹配的唯一订单是列名称和值.
IE:3列:col1,col2,col3
INSERT INTO TABLE (col1 ,col2 ) VALUES(col1value ,col2value)
INSERT INTO TABLE (col2 ,col3 ) VALUES(col2value ,col3value)
INSERT INTO TABLE (col3 ,col2 ) VALUES(col3value ,col2value)
| 归档时间: |
|
| 查看次数: |
115 次 |
| 最近记录: |