我正在使用 Oracle 12。
当您定义 insert statement可以选择不说明列列表
If you omit the column list altogether, then the values_clause or query must specify values for all columns in the table.
在 Ask TOM 中也有描述在为批量建议最佳性能解决方案时:
insert into insert_into_table values ( data(i) );
我的问题是,与在语句中将列声明为
insert table A (col1, col2, col3) values (?, ?, ?);
最佳答案
最佳实践是,你总是在插入语句中定义列,不是为了性能(没有区别),而是为了这样的情况:
因此,为避免失败,请始终命名列,这样您的代码在修改表结构时就不会停止。
关于oracle - 没有列的插入语句是否在 Oracle 中批准性能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51739774/