Quantcast
Channel: Flipflops.org » MySQL
Browsing latest articles
Browse All 5 View Live

MySQL import / export at the Command Line

Like many (most?) developers when I work with a database I tend to manage them using another programme – usually either phpMyAdmin or Navicat. However there are times when you have to get basic again...

View Article


Image may be NSFW.
Clik here to view.

Finding overlapping dates and times in MySQL

Quite often you end up in situations where you are required to check and see if one time period overlaps another time period. Probably the most common situation this occurs in is when you are building...

View Article


UK Towns and Postcode Areas

The other day I needed a list of UK post towns matched up to postcode areas, which I found on wikipedia. Anyway I have tidied it up and put it into two database tables postcode and town You can...

View Article

MySQL DATE_FORMAT() AND PHP date() formats

I’m always finding myself looking up strings to format PHP and MySQL dates. A simple d/m/Y is pretty straight forward but sometimes things can get a bit fiddly. Where ever possible I try and leave my...

View Article

Quickly duplicate a row in MySQL

A quick way of duplicating a row in a table without running into duplicate key errors or having to type out all the field names… Not quite a one-liner, but very straightforward. /* Duplicate row 58...

View Article

Browsing latest articles
Browse All 5 View Live