Skip to content

Instantly share code, notes, and snippets.

@faizanayubi
Created September 6, 2015 11:38
Show Gist options
  • Save faizanayubi/528495391ac5364f453a to your computer and use it in GitHub Desktop.
Save faizanayubi/528495391ac5364f453a to your computer and use it in GitHub Desktop.
Popular MySQL Script
Search insert and update
INSERT INTO table (id, name, age) VALUES(1, "A", 19) ON DUPLICATE KEY UPDATE
name=VALUES(name), age=VALUES(age)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment