jim.davidson Posted February 11, 2010 Share Posted February 11, 2010 I want to replace all field "A" with field "B" where field "C" is empty. Can someone point me in the right direction? Any help will be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/191823-need-help-with-mysql-command/ Share on other sites More sharing options...
sader Posted February 11, 2010 Share Posted February 11, 2010 UPDATE `table` SET `b`=`a` WHERE `c`= '' Quote Link to comment https://forums.phpfreaks.com/topic/191823-need-help-with-mysql-command/#findComment-1011040 Share on other sites More sharing options...
jim.davidson Posted February 11, 2010 Author Share Posted February 11, 2010 Found the answer further down in the forum Quote Link to comment https://forums.phpfreaks.com/topic/191823-need-help-with-mysql-command/#findComment-1011041 Share on other sites More sharing options...
jim.davidson Posted February 11, 2010 Author Share Posted February 11, 2010 Thanks Sader, I found it just before you replied. Thank you anyway, that's what I was looking for. Quote Link to comment https://forums.phpfreaks.com/topic/191823-need-help-with-mysql-command/#findComment-1011042 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.