Search all fields for keyword Baylor using phpMyAdmin

Posted on 2013-10-13
Medium Priority
Last Modified: 2013-10-25
I want to search ALL fields for keyword Baylor (case not sensitive) and here is the only screen I have available http://screencast.com/t/boxq0xUuG.  How can I make that happen as opposed to being restricted to a column?
Question by:frugalmule
1 Comment
LVL 25

Accepted Solution

chaau earned 2000 total points
ID: 39569938
If your frontend allows you to create a custom expression and use the MySQL Functions, you can create an expression using CONCAT_WS where you include all the columns and search it for your keyword.

The pseudo code of this search will look like this:
SELECT * From Table1 WHERE LOWER(CONCAT_WS(',', CompanyName, FirstName, LastName, etc)) LIKE '%baylor%'

Open in new window

You also need to use LOWER function to make the search string lower case and search against a lower case string.

BTW, I can see that there is an SQL tab page on your screen. Just use it to type the SQKL directly

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Article by: Tammy
MySQLTuner is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief forma…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question