MySQL tutorials
MySQL: Increment an exisitng value
Contributed by qmchenry on February 24, 2007 under MySQLThis slick MySQL syntax allows you to increment or decrement an existing number in a table without first having to read the value. This is a nice way to increment an access counter.
CommentsMySQL: Use CONCAT to include text in SELECT results
Contributed by qmchenry on January 31, 2007 under MySQLThe CONCAT function in MySQL allows SELECT statements to act like printf commands by mingling text and query results together.
CommentsCopy an existing MySQL table to a new table
Contributed by qmchenry on July 4, 2006 under MySQLThis is a great set of two commands that allow the creation and population of a new table with the structure and data of an existing table. This provides a quick means of making a point-in-time copy of a table and is a safe, easy way to make a quick copy of a table for testing an application in development on live data without risking a production environment.
CommentsRename or change name of MySQL table
Contributed by qmchenry on under MySQLIf you change your mind and want to rename an existing MySQL table, with or without data in it, it is no problem. One simple command will change the table’s name.
CommentsIgnore duplicate entries in MySQL select using DISTINCT keyword
Contributed by qmchenry on July 3, 2006 under MySQLSometimes every occurance of a value which may be duplicated multiple times in a result set is not needed. For example, if making a pulldown menu list of options, each option should be seen only once. The DISTINCT keyword in a select statement eliminates duplication in the result set.
CommentsSave MySQL query results into a text or CSV file
Contributed by qmchenry on June 28, 2006 under MySQLMySQL provides an easy mechanism for writing the results of a select statement into a text file on the server. Using extended options of the INTO OUTFILE nomenclature, it is possible to create a comma separated value (CSV) which can be imported into a spreadsheet application such as OpenOffice or Excel or any other applciation which accepts data in CSV format.
CommentsGet MySQL date in RFC-822 format for RSS feeds
Contributed by qmchenry on June 19, 2006 under MySQLTo get the PubDate element of an RSS feed to validate, it needs to be in RFC-822 format. MySQL has flexible ways of working with dates and times which make this a simple task.
CommentsPOPULAR RECIPES
- Solve: Can't connect to local MySQL server through socket /tmp/mysql.sock
- Add a column to an existing MySQL table
- Create a MySQL user account
- Change the MySQL root user password
- Drop or delete a table in MySQL
- Display a list of databases on a MySQL server
- Create a MySQL table with a primary key
- Change a MySQL user password
- View our Top Tens
TECH-RECIPES BLOGS
- Medical Abbreviations Application for iPhone Available.
- Medabbr Submitted to iPhone Store
- my msi wind and osx audio workaround (plantronics audio 480)
- my video MP4 tagging and zune tip!
- I Played with a Microsoft Surface Yesterday
- How to Put a YouTube Video on Your iPod (for free!)
- 10 Phone Numbers That Should Be In Your Cell Phone's Address Book
- 10 Must Have (and Free) Apps for the BlackBerry







