For Oracle database, when using PowerDesigner tool (or Navicat tool) to write database script, sometimes the column name is quoted in double quotation marks when creating a table
java an error will be reported when connecting ora-00904 : the identifier is invalid; If you remove the double quotation marks, you won’t report an error
For example:
Original table:
1 CREATE TABLE ”my_test“( 2 “id” NUMBER(10) NOT NULL, 3 ”name“ VARCHAR2(20) NOT NULL, 4 “password” VARCHAR2(10 CHAR) NOT NULL, 5 PRIMARY KEY (ID) 6 )
After modification:
1 CREATE TABLE my_test( 2 id NUMBER(10,0) NOT NULL ENABLE, 3 name VARCHAR2(20 CHAR) NOT NULL ENABLE, 4 password VARCHAR2(10 CHAR) NOT NULL ENABLE, 5 PRIMARY KEY (ID) 6 )
Similar Posts:
- MYSQL ERROR 1005 (HY000): Can’t create table [How to Solve]
- Treatment of MySQL database keyword as column name by mybatisplus — sqlsyntax errorexception: you have an error in your SQL syntax;
- [Solved] Factory method ‘jdbcDialect‘ threw exception; nested exception is org.springframework.data.jdbc.repo
- mysql: [Err] 1075 – Incorrect table definition; there can be only one auto column and it must be d…
- About BeanShell error invoking BSH method
- [Solved] Oracle Import Error:field in data file exceeds maximum length
- Solution of data truncated for column ‘xxx’ in MySQL
- SQL Error: 1064, SQLState: 42000 [Three Methods to Solve]
- [Err] 1214 – The used table type doesn’t support FULLTEXT indexes
- MySQL timestamp set default value error Invalid default value reason and solution