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!

how to set a mysql row to null ? 1

Status
Not open for further replies.

z3phir

Programmer
Joined
Dec 15, 2002
Messages
16
Location
RO
how do i set a mysql row to null ? example i have table forms with field formid how do i set it to null ?
 
I'm not sure what you're asking to do.

Generally, you don't set a row no NULL -- you delete it.

You can set a particular column in a particular column to NULL using an UPDATE query:

UPDATE tablename SET columnname = NULL WHERE someothercolumnname = somevalue


Keep in mind, however, that in MySQL there is a difference between an empty value and a NULL value. Read here:
Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top