An invalid datatype is returned when I issue following command:
CREATE TABLE msg_info (
msgcode PLS_INTEGER,
msgtype VARCHAR2(30),
msgtext VARCHAR2(2000),
msgname VARCHAR2(30),
description VARCHAR2(2000)
);
I discovered it’s resulted from msgcode PLS_INTEGER, removing this column will make creation successful.
Is it XE restriction?
Thanks.
PLS_INTEGERis a PL/SQL type only. It cannot be used in SQL tables / DDL-at-large.I think one should declare the column as
NUMBERtype and, when retrieving data, use thePLS_INTEGERtype at the level of PL/SQL.See Oracle Datatypes