ORA-38415: invalid name or datatype for the attribute: string
Cause: An invalid name or datatype was used for the attribute.
Action: Set serveroutput ON and repeat the operation for additional information.
ORA-38415错误是由于无效的属性名称或数据类型所导致的。
ORA-38415: invalid name or datatype for the attribute
Cause: An invalid name or datatype was specified for the attribute in an object type or collection element.
Action: Fix the spelling of the attribute name or provide a valid datatype.
当尝试创建ORDER_LINE表时,可能出现此错误:
SQL> CREATE TABLE ORDER_LINES (Quantity NUMBER, Price STRING);
ERROR at line 1:
ORA-38415: invalid name or datatype for the attribute: “STRING”
要解决这个问题,您应该提供有效的数据类型,以便存储特定值:
SQL> CREATE TABLE ORDER_LINES (Quantity NUMBER, Price NUMBER);
Table created.