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: this insert is not working .....

Re: this insert is not working .....

From: Vitaliy Vorontsov <vitaliy.vorontsov_at_gmail.com>
Date: 20 Nov 2006 07:11:34 -0800
Message-ID: <1164035494.439146.45930@e3g2000cwe.googlegroups.com>


It's not advisable to use implicit naming of columns in SQL statements. You should better use your INSERT statement specifying exact names of columns:

insert into cccb(cccb_id, com_name) values(200 ,'Advisory C');

user wrote:
> com_name varchar2(50) NOT NULL,
> CONSTRAINT cccb_pk PRIMARY KEY (cccb_id));
>
> insert into cccb values (150 ,'Annexation C');
> insert into cccb values(200 ,'Advisory C');
> insert into cccb values(800 ,'Protection C');
> insert into cccb values(1000 ,'Transit C');
> insert into cccb values(1050 ,'Water C');
>
> insert errors out with
>
> ORA-00911: invalid character
>
> any suggestions?
Received on Mon Nov 20 2006 - 09:11:34 CST

Original text of this message

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