Skip to content

Instantly share code, notes, and snippets.

@zhaoawd
Last active January 22, 2019 03:19
Show Gist options
  • Save zhaoawd/959ed014ca6707e288e7748c4d53cd98 to your computer and use it in GitHub Desktop.
Save zhaoawd/959ed014ca6707e288e7748c4d53cd98 to your computer and use it in GitHub Desktop.
[mysql 不存在则插入,存在则更新] #mysql
on duplicate key update file_name = values(file_name)
file_name应该是唯一索引
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment