View Full Version : Pls-00363
TrynTry
09-30-2005, 06:33 PM
I am trying to create an object as below:
CREATE TYPE type_tst AS OBJECT(
sname VARCHAR2(9) NOT NULL DEFAULT '0',
age NUMBER NOT NULL DEFAULT 0,
idno NUMBER NOT NULL DEFAULT 0
);
I get the following error:
LINE/COL ERROR
--------
-----------------------------------------------------------------
0/0 PL/SQL: Compilation unit analysis terminated
2/1 PLS-00363: expression 'SNAME' cannot be used as an assignment
target
What am I doing wrong? If I take out NOT NULL and DEFAULT, the type is
created without any errors.
--
TrynTry
------------------------------------------------------------------------
TrynTry's Profile: http://www.highdots.com/forums/m872
View this thread: http://www.highdots.com/forums/t3002412
DA Morgan
10-04-2005, 08:14 AM
TrynTry wrote: I am trying to create an object as below: CREATE TYPE type_tst AS OBJECT( sname VARCHAR2(9) NOT NULL DEFAULT '0', age NUMBER NOT NULL DEFAULT 0, idno NUMBER NOT NULL DEFAULT 0 ); I get the following error: LINE/COL ERROR -------- ----------------------------------------------------------------- 0/0 PL/SQL: Compilation unit analysis terminated 2/1 PLS-00363: expression 'SNAME' cannot be used as an assignment target What am I doing wrong? If I take out NOT NULL and DEFAULT, the type is created without any errors.
The syntax is invalid. Where did you find NOT NULL DEFAULT as valid
syntax for a user defined data type?
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.