java.sql.SQLSyntaxErrorException: ORA-00926: 缺失 VALUES 關(guān)鍵字錯(cuò)誤
為什么使用oracle數(shù)據(jù)庫(kù)配置上面CommandContent.xml的insertBatch的sql語(yǔ)句老是出現(xiàn)java.sql.SQLSyntaxErrorException: ORA-00926: 缺失 VALUES 關(guān)鍵字錯(cuò)誤 怎么看都發(fā)現(xiàn)不了錯(cuò)誤
2016-12-16
學(xué)習(xí)了,我之前百度來(lái)的一個(gè)sql寫法是
insert all into message
? (id, command, description, content)
values
? (5, '5', '5', '5') into message
? (id, command, description, content)
values
? (6, '6', '6', '6')
? select 1 from dual;
2015-08-19
最好加上對(duì)空字符串的判斷
2015-08-19
解決了 因?yàn)閛ralce使用的是子查詢 所以得對(duì)select語(yǔ)句后面的字段進(jìn)行非空判斷 上圖