Skip to content

Instantly share code, notes, and snippets.

@saihoooooooo
Last active January 2, 2016 12:29
Show Gist options
  • Select an option

  • Save saihoooooooo/8303489 to your computer and use it in GitHub Desktop.

Select an option

Save saihoooooooo/8303489 to your computer and use it in GitHub Desktop.
Make SQL from id and id. (use quickrun)
3,$s/\(\d\+\),\(\d\+\)/UPDATE m_hoge SET id = \2 WHERE id = \1;/
1,11
2,12
3,13
4,14
5,15
6,16
7,17
8,18
9,19
10,20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment