向表格中插入登记(insert into)时候,挂失常,提醒:ORA-00928: 缺失 SELECT 关键字(missing
SELECT keyword)
起因:
1、如网上大局部揭示的相仿,是因为列名上不能增加单引号:
如写成INSERT INTO USERTAB
('uniPositionCode','transferGroupName','appCode','appName','transferPort','cfg_network','transferProtocol','transferip','insideState')
VALUES('01330000','1','20','4343','9513','0','9513','0.0.0.0','0')
就会报错;
2、另一个起因可能是你的oracle数据库表名或列名属于sql中的保留字,如表名写成PASSWORD,有列名写成USER
最常见的oracle保留字有这些:
ACCESS ADD ALL ALTER AND ANY AS ASC AUDIT BETWEEN BY CHAR
CHECK CLUSTER COLUMN COMMENT COMPRESS CONNECT CREATE CURRENT
DATE DECIMAL DEFAULT DELETE DESC DISTINCT DROP ELSE EXCLUSIVE
EXISTS FILE FLOAT FOR FROM GRANT GROUP HAVING IDENTIFIED
IMMEDIATE IN INCREMENT INDEX INITIAL INSERT INTEGER INTERSECT
INTO IS LEVEL LIKE LOCK LONG MAXEXTENTS MINUS MLSLABEL MODE
MODIFY NOAUDIT NOCOMPRESS NOT NOWAIT NULL NUMBER OF OFFLINE
ON
ONLINE OPTION OR ORDER PCTFREE PRIOR PRIVILEGES PUBLIC RAW
RENAME RESOURCE REVOKE ROW ROWID ROWNUM ROWS SELECT SESSION
SET SHARE SIZE SMALLINT START SUCCESSFUL SYNONYM SYSDATE
TABLE
THEN TO TRIGGER UID UNION UNIQUE UPDATE USER VALIDATE VALUES
VARCHAR VARCHAR2 VIEW WHENEVER WHERE WITH
ps:利用hibernate,小狗吸尘器只有修正搭配文件,在列名上加"[]"如下:
type="java.lang.String">
小结一下:C++中有许多混杂的(措施或)知识点其实是留着应付一些混杂问题的。