Development

Using filters with Heidisql

This week I've been using a Windows machine to that end I needed to use a MySQL client I prefer a client over using phpmyadmin, I chose to use Heidisql it's actually a really good MySQL Client.

http://www.heidisql.com/

Coming from a Sequal Pro perspective I'm using to use filters a lot when searching through records in the database. Heidisql has useful filters it's not immediately obvious how to use them.

When looking at the data tab in the main window on the top right is "Filter" once you click on that a new area slides down, that is broken down into two areas:

The left window is for sql queries, the right is for searching words it's labeled as "Create multi column filter"  this works by entering a word you want to search for in the data and pressing filter. Once filtered a search sql query is written on the left window.

The word filter is good if your looking for a word within the data.

I normally need more specific results this is where the left window comes in. In this windows you enter a where claus for instance say you have a status column and you want to see all results that have a status of Pending you could enter status="Pending" then press filter.

This window essentially does a SELECT * FROM table WHERE YOURFILTER this means you don't need to enter anything before the WHERE only the condition.

Not useful for doing joins for filtering a single table this is very handy and super quick! For more advanced searches or join the query tab would be used.

David Carr

David Carr

For the past 12 years, I’ve been developing applications for the web using mostly PHP. I do this for a living and love what I do as every day there is something new and exciting to learn.

In my spare time, the web development community is a big part of my life. Whether managing online programming groups and blogs or attending a conference, I find keeping involved helps me stay up to date. This is also my chance to give back to the community that helped me get started, a place I am proud to be apart of.

Besides programming I love spending time with friends and family and can often be found together going out catching the latest movie, staying in playing games on the sofa or planning a trip to someplace I’ve never been before.