Forum Moderators: open

Message Too Old, No Replies

MySQL

UPDATE where column

         

Alternative Future

3:56 pm on Apr 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello to the forum,

MySQL version 4.0.23-standard

I am trying to UPDATE a column in my database WHERE a column = 'value and other column = null with a value.

UPDATE table
WHERE column_a = 'value'
AND
column_b = NULL
create a value in column_b

Any help with the query is appreciated.

TIA,

-George

txbakers

5:53 pm on Apr 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



UPDATE table set columnB= 'myVal'
WHERE column_a = 'value'
AND
column_b is NULL

Alternative Future

5:57 pm on Apr 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nice one txbakers many thanks for that...

-George