文档解释
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.
香港美国云服务器首选树叶云,2H2G首月10元开通。
树叶云(shuyeidc.com)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/256110.html<

