phpmyadmin search for "blank" fields

The issue is that I want to search for "blanks" not NULLS...see image
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
What type is that column? For varchar you can use
SELECT column1,.., columnx FROM tablename WHERE Group IS NOT NULL AND Group = ""

To achieve this using the interface, click on the "Search" tab, you should see a column labeled "Operator", which gives you a dropdown list of operator options.  One of those options should be:

= ''

So, on the `Group` row, select the operator above, but don't type anything in the "Value" column.

If you want to do this via a query, be sure to surround `Group` in backticks (as I just did) because it is a keyword:

SELECT * FROM `tablename` WHERE `Group` IS NOT NULL AND `Group`='';

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Starquest321Author Commented:
Perfect . . works. Now how can I do a query that will replace the "blank" group field with the number 118

Meaning: Search and replace?
You will need to execute an update query:
UPDATE  `tablename` SET `Group`=118 WHERE `Group`=''

Open in new window

Note: the above statement will update ALL the records with `Group`='', not just the first one. Also, fields with a NULL value will not be updated. If you are trying to update a specific record, use the primary field.  For instance, if the table has a primary field named `ID`, first do the search like did initially.  Make a note of the ID for the specific record you want to update.  Then use the ID in the update query --ex: if the ID for the record in question is 34 then use:
UPDATE `table and ` SET `Group`=118 WHERE ID=34

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.