DDRRE Posted November 16, 2006 Share Posted November 16, 2006 MySQL database name: ady_zofimMySQL table name: ibf_membersColumns to change:`deposited` int(16) NOT NULL default '0',`auto_collect` tinyint(1) NOT NULL default '0',`extra_interest` int(3) NOT NULL default '0',`creditcard` int(3) NOT NULL default '0',`points` int(11) NOT NULL default '10',how can I change the value of these columns on all rows to 0?(a PHP script would be nice :)) Quote Link to comment https://forums.phpfreaks.com/topic/27468-solved-changing-value-of-a-certain-column-to-0-on-all-rows/ Share on other sites More sharing options...
exploo Posted November 16, 2006 Share Posted November 16, 2006 Allright, so you want to change all these columns to 0, on all rows.This should be the query for that:UPDATE ibf_members SET deposited=0, auto_collect=0, extra_interest=0, creditcard=0, points=0; Quote Link to comment https://forums.phpfreaks.com/topic/27468-solved-changing-value-of-a-certain-column-to-0-on-all-rows/#findComment-125589 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.