Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Invalid column name problem

Re: Invalid column name problem

From: Valery Yourinsky <vsu_at_bill.mts.ru>
Date: Mon, 17 Sep 2001 12:54:59 +0400
Message-ID: <3BA5BA63.5383EAA7@bill.mts.ru>


Jordan wrote:
>
> Dear all,
> During I used sqlplus / svrmgrl, when I refer some table
> column, oracle always said that "invalid column name", e.g. a table "dept"
> has the following structure
>
> Column Name Null? Type
> ------------------------------ -------- ----
> DEPTNO NOT NULL NUMBER(38)
> DNAME NOT NULL CHAR(30)
> LOC CHAR(30)
>
> When I type "alter table dept add constraint chk_loc (LOC NOT NULL)", the
> error message "ORA-00904: invalid column name" appears. I have tried using
> different case and the problem still exists. Can anyone help me?

   alter table dept add constraint chk_loc CHECK (LOC IS NOT NULL)

Valery Yourinsky

-- 
Oracle8 Certified DBA
Moscow, Russia
Received on Mon Sep 17 2001 - 03:54:59 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US