If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Basic alter question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-14-04, 10:48
yasmagic yasmagic is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Basic alter question

Hello I am very new to MySQL. I have a table called "products" and there is a field called "demo" in "products". The field "demo" has values as 1s and 0s. I want to change all the 1s to 0s by a simple query. Any help please?
Reply With Quote
  #2 (permalink)  
Old 07-14-04, 12:46
exdter exdter is offline
Registered User
 
Join Date: Aug 2003
Posts: 328
update products
set demo=0 where demo=1
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On