Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.