Related Posts:

  • To check if a column exists in a table with SQL using a MySQL database is pretty easy, thanks to the nifty SHOW COLUMNS command. To find if a specific column exists, we simply extend the standard SHOW COLUMNS FROM statement with a LIKE parameter, which allows us to search for a specific string or for a partial s ...

  • To check if a table exists with SQL in a MySQL database is pretty easy, thanks to the nifty SHOW TABLES command. To find if a specific table exists, we simply extend the standard SHOW TABLES statement with a LIKE parameter, which allows us to search for a specific string or for a partial string using the standar ...

  • To reuse an existing result set returned from a query is actually pretty simple thanks to PHP's mysql_data_seek function and the fact that mysql_query returns a buffered result set by default. So essentially all we want to do is rewind the entire pointer right to the start in order to reuse the set. And to ...

  • I have a specific sequence of ID numbers and I want the result set retrieved when looking up more information on those records in the exact same sequence that I have it. This sequence is not your usual ascending or descending order, but rather in a very specific order. So how does one do this? Well the answer li ...

  • To find out what collation and character set your database is using turns out to be pretty trivial thanks to MySQL's SHOW VARIABLES SQL statement that reveals all the inner workings of your setup. First, select your database. If you are working from the command line: USE mydatabase Then, run the SHOW VARIABLES ...

 
       

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under whichever martial arts dojo is closest at the time, and for the most part, simply enjoys life with his amazing wife and daughter.

Oh, and he draws ever now and then too.

This is a collection of things that he has managed to find the time to scribble down since 2007.

Looking for Something?

Jump to Category:

 
©2007-2013 Craig Lotter