₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,165 members, 8,448,921 topics. Date: Tuesday, 21 July 2026 at 06:03 AM

Toggle theme

Help! Using Update Statement To Replace All NULL Value In A Column In Mysql - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersHelp! Using Update Statement To Replace All NULL Value In A Column In Mysql (531 Views)

1 Reply

Help! Using Update Statement To Replace All NULL Value In A Column In Mysql by uvalued(op): 2:16am On Aug 27, 2015
am stuck. I have this database table that have
20,000+ rows. A COLUMN PAYMENT has some data and most
of it with the NULL value. So i want to update all NULL in the PAYMENT
COLUMN with value from say CREDIT COLUMN.

I used something like this

UPDATE table
SET

PAYMENT = CREDIT

WHERE PAYMENT IS NULL;

it did not work can someone help?

thanks
Re: Help! Using Update Statement To Replace All NULL Value In A Column In Mysql by talk2hb1(m): 6:34am On Aug 27, 2015
Its like you never specify the unique id of the row you intend to update
Re: Help! Using Update Statement To Replace All NULL Value In A Column In Mysql by JackOfAllTrades: 8:07am On Aug 27, 2015
Use this query instead
Update table SET `payment` = 'credit' WHERE `payment` = 'Null';
1 Reply

HELP ME Error Parsing XML, Line 15, Column 70: The Entity "Raquo" Was ReferencedHow To Fill Bank Information Column On ClickbankHow To Fix Annoying Opera Mini Single Column View And Similar Browsers Issues234

The New Unbreakable,unhackable, And Waterproof Turing Phone Is Around The CorneaIf U Have Naija Non Hosted Acct For Sale Hoop InGet An Android App With Adsense For Your Blog - Increase Traffic And Earnings