|
在行: 1 上开始执行命令时出错 -
INSERT INTO NIHAO VALUES
('11413053010003679771','37083019990129394X','胡秋英','居民','H37083000077','东和县人民医院','2518363-001','','BI63900','住院诊查费','22','1','22','2025-07-01','22','0','0','0','110200005','住院诊查费','','','0','0','', ''),
('11413053010003679771','37083019990129394X','胡秋英','居民','H37083000077','东和县人民医院','2518363-001','','BI63900','三人间(一等)','45','1','45','2025-07-01','35','0','10','0','110900001b1','三人间(一等)','','','0','10','', ''),
('14370830193701125000','370830199901125711','薛芳茂','职工','H37083000077','东和县人民医院','*37000000002115473456','帕金森综合征','M02301','卡左双多巴缓释片','1.655667','120','198.68','2025-07-06','0','178.81','0','19.87','XN04BAK135A010010104495','卡左双多巴缓释片','卡比多巴50mg,左旋多巴200mg','卡左双多巴缓释片','0','0','e7', '')
错误位于命令行: 3 列: 43
错误报告 -
SQL 错误: ORA-00933: SQL 命令未正确结束
https://docs.oracle.com/error-help/db/ora-00933/00933. 00000 - "unexpected keyword at or near %s"
*Cause: An unexpected keyword was encountered in the SQL statement at
or near the position printed in the error message.
One of the following occurred:
1. You had a typo in your SQL statement.
2. Unsupported syntax was encountered for a clause in the
statement.
3. An unsupported clause was encountered in the statement.
4. A string was terminated prematurely leading to the rest
of the string to be interpreted as keywords. For example, an
apostrophe in the string may be causing it to
end prematurely.
*Action: Take the action that corresponds with the Cause
1. Check that your SQL statement has no typos.
2. Check Oracle Database documentation to find the
correct syntax for the clause and update the problematic
clause appropriately.
3. Check Oracle Database documentation to find the correct
syntax for the statement and remove the unsupported clause.
4. Enter two single quotes instead of one to represent an
apostrophe within a string.
*Params: 1) keyword_value
keyword near the keyword causing the error. The keyword value
may be truncated for readability if it is too long.
这个错误 ORA-00933: SQL 命令未正确结束 的原因是:Oracle 数据库不支持在一条 INSERT 语句中使用多个 VALUES 子句进行多行插入。
你的语法是其他数据库(如 MySQL、PostgreSQL、SQL Server)支持的多行插入语法,但 Oracle 不支持这种写法。
https://chat.deepseek.com/a/chat ... a-b56c-8ad0e5334e8b |
|