ORACLE create table or query error: ORA-00972: identifier is too long solution

1. Reason analysis

The problem is generally that the table name, column name, or alias is too long, which exceeds the limit of the oracle database. Oracle database version before 12.1, including 12.1 name limit length is 30 strings. 12.2 and later modify the limit length to 128 strings.

2. Solution

  1. If you encounter this problem during the development process, you can modify your own SQL statement to ensure that the field length is within the limit.
  2. When this problem occurs during data import, you can generally only replace the higher version database, otherwise the data cannot be imported normally.

3. Essay

I am used to mysql and SqlServer databases. I need to use oracle for some force majeure reasons. I learned from scratch and found that there are still many pits. Don’t talk about it, keep going~~~~

Guess you like

Origin blog.csdn.net/cyb_123/article/details/108618113