Skip to content

Instantly share code, notes, and snippets.

@thallisphp
Created June 16, 2015 12:08
Show Gist options
  • Save thallisphp/2a08f7eecfe2e5802317 to your computer and use it in GitHub Desktop.
Save thallisphp/2a08f7eecfe2e5802317 to your computer and use it in GitHub Desktop.
UPDATE `tabela`
SET `data`= DATE_FORMAT(STR_TO_DATE(`data`, '%d/%m/%Y'), '%Y-%m-%d')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment