Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
-
jkashu
- Forum Commoner
- Posts: 45
- Joined: Tue Jan 30, 2007 12:00 pm
Post
by jkashu »
How do I enter a NULL into a certain column in my database?
This probably isn't right, but it show what I want to do...
-
jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Post
by jayshields »
Have you tried that?
-
Apollo
- Forum Regular
- Posts: 794
- Joined: Wed Apr 30, 2008 2:34 am
Post
by Apollo »
Your query is correct. Keep in mind that this will set the age to NULL for every record in your example table.
-
jkashu
- Forum Commoner
- Posts: 45
- Joined: Tue Jan 30, 2007 12:00 pm
Post
by jkashu »
lol..I didn't actually try it. I figure that it would be more complicated than that. Thanks so much!