Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set value to NULL in mysql

Status
Not open for further replies.

Bastien

Programmer
Joined
May 29, 2000
Messages
1,683
Location
CA
how do i set a value to null

currently using

$sql_hold="update booth_status set booth_status = 0, company='' where booth_id = $id";

but thnik null is a better option


$sql_hold="update booth_status set booth_status = 0, company=NULL where booth_id = $id";

doesn't seem to work

help please



Bastien

cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top