Skip to content

Instantly share code, notes, and snippets.

@Webklex
Created June 13, 2013 12:54
Show Gist options
  • Save Webklex/5773442 to your computer and use it in GitHub Desktop.
Save Webklex/5773442 to your computer and use it in GitHub Desktop.
SQL - Groupcommands
FROM_UNIXTIME(timestamp,'%d.%m.%Y') #Gibt ein schön formatiertes Datum aus
#Build an automated CURENT_TIMESTAMP to UNIX-DATE converter by using a TRIGGER
CONVERT CURENT_TIMESTAMP TO UNIX-DATE SET NEW.date = UNIX_TIMESTAMP(NOW())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment