Re: trouble with field NULL

2002-05-12 Thread Neil Zanella
I will guess that the NULL field you defined is of a numeric type such as INT. In standard SQL the empty string '' is not the same as the special value NULL, and this is also true in MySQL, but not in Oracle. Probably you are inserting a '' into the database column but MySQL correctly interprets

Re: trouble with field NULL

2002-05-10 Thread Paul DuBois
At 13:59 -0500 5/10/02, Steve Buehler wrote: >At 01:22 PM 5/10/2002, Paul DuBois wrote: >>At 13:11 -0500 5/10/02, Steve Buehler wrote: >>>I have found that I can NOT do this: >>>$null = "NULL" or even $null = NULL than put that into a statement >>>like this: >>>UPDATE games SET game_id = '$null';

Re: trouble with field NULL

2002-05-10 Thread Steve Buehler
At 01:22 PM 5/10/2002, Paul DuBois wrote: >At 13:11 -0500 5/10/02, Steve Buehler wrote: >>I have found that I can NOT do this: >>$null = "NULL" or even $null = NULL than put that into a statement like this: >>UPDATE games SET game_id = '$null'; >>can't do it like this either >>UPDATE games SET gam

Re: trouble with field NULL

2002-05-10 Thread Paul DuBois
At 13:11 -0500 5/10/02, Steve Buehler wrote: >I have found that I can NOT do this: >$null = "NULL" or even $null = NULL than put that into a statement like this: >UPDATE games SET game_id = '$null'; >can't do it like this either >UPDATE games SET game_id = $null; >I have to do it like this: >UPDAT

Re: trouble with field NULL

2002-05-10 Thread Steve Buehler
I have found that I can NOT do this: $null = "NULL" or even $null = NULL than put that into a statement like this: UPDATE games SET game_id = '$null'; can't do it like this either UPDATE games SET game_id = $null; I have to do it like this: UPDATE games SET game_id = NULL; NO QUOTES of any kind.

trouble with field NULL

2002-05-10 Thread raphael k
I created a table with a field define as NULL, however when I insert values NULL , Mysql puts 0 instead of nothing , I don't understand why I have this trouble , Thanks - Before posting, please check: http://www.mysql.c

Re: trouble with field NULL

2002-05-10 Thread Joseph Bueno
raphael k wrote : > > I created a table with a field define as NULL, however when I insert > values NULL , Mysql puts 0 instead of nothing , > > I don't understand why I have this trouble , > > > > Thanks > Hi, If you don't show us your query, it will be hard to help you ... Regards -- Jo

trouble with field NULL

2002-05-10 Thread raphael k
I created a table with a field define as NULL, however when I insert values NULL , Mysql puts 0 instead of nothing , I don't understand why I have this trouble , Thanks - Before posting, please check: http://www.mysql