Jump to content

[SOLVED] IS NULL - Not an Option for phpMyAdmin search


toxictoad

Recommended Posts

Hi, I've got some fields in my database that are empty and using phpMyAdmin I wanted to use the search to pull these records out so I can update them all without having to find each one manually but I can't seem to find out how?

 

I tried using LIKE = IS NULL and other variations but they are empty fields and IS NULL doesn't return them. Is there a way around this, remaining in phpMyAdmin?

 

Thanks

The queries I posted, should update your empty fields with whatever you put instead of 'set your value here'

 

So if you want all empty fields to be for example '1' do

 

UPDATE `table` SET `column` = '1' WHERE `column` = '' 

 

Although from your example it seems that you will want to put different plot for each movie anyways ;)

slowly getting an understanding of it (php/mysql) and after a little testing I could see what you'd given me, was just having trouble fitting it in with what I was doing but all good and I now know what I need to update records based using the SET & WHERE clause ;) Thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.