Pls-00363

From: TrynTry <TrynTry.1w7g6r_at_no-mx.forums.yourdomain.com.au>
Date: Sat, 1 Oct 2005 04:33:12 +0200
Message-ID: <TrynTry.1w7g6r_at_no-mx.forums.yourdomain.com.au>


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
Received on Sat Oct 01 2005 - 04:33:12 CEST

Original text of this message