[SQL] Please help me out on this insert error

2002-06-13 Thread Vernon Wu
Command: Insert into profile (userid, haveChildren)values('id98', 'No'); Error: ERROR: Relation 'profile' does not have attribute 'havaChildren' Table: Table "profile" Column| Type | Modifiers --+---+-- useri

Re: [SQL] Please help me out on this insert error

2002-06-13 Thread Joe Conway
Vernon Wu wrote: > Command: > > Insert into profile (userid, haveChildren)values('id98', 'No'); > > Error: > > ERROR: Relation 'profile' does not have attribute 'havaChildren' ^^^ From the error message, looks like you spelled haveChild

Re: [SQL] Please help me out on this insert error

2002-06-13 Thread Stephan Szabo
On Thu, 13 Jun 2002, Vernon Wu wrote: > I, however, didn't use double quote mark when I created the table at all. If you used an interface to generate the table def, alot of them add the quote marks behind your back when they do the creation. In general, it's safer to just use all lowercase nam

Re: [SQL] Please help me out on this insert error

2002-06-13 Thread Stephan Szabo
On Thu, 13 Jun 2002, Vernon Wu wrote: > > Command: > > Insert into profile (userid, haveChildren)values('id98', 'No'); You presumably used double quotes when creating the column, so you need to use them to refer to the column from that point on: insert into profile(userid, "haveChildren") ...

Re: [SQL] Please help me out on this insert error

2002-06-13 Thread Manfred Koizar
On Thu, 13 Jun 2002 13:16:29 +0800, Vernon Wu <[EMAIL PROTECTED]> wrote: > >Command: > >Insert into profile (userid, haveChildren)values('id98', 'No'); > >Error: > >ERROR: Relation 'profile' does not have attribute 'havaChildren' ^

Re: [SQL] Please help me out on this insert error

2002-06-13 Thread Vernon Wu
You are right, Steve. It needs the double quote mark. After I use the double quote mark, an error message is: ERROR: ExecAppend: Fail to add null value in not null attribute ... which is right since I don't have non-null value to non-null field yet. I, however, didn't use double quote mark w

Re: [SQL] Please help me out on this insert error

2002-06-13 Thread Vernon Wu
6/14/2002 6:31:16 AM, Stephan Szabo <[EMAIL PROTECTED]> wrote: > >On Thu, 13 Jun 2002, Vernon Wu wrote: > >> I, however, didn't use double quote mark when I created the table at all. > >If you used an interface to generate the table def, alot of them add the >quote marks behind your back when the