Skip to content

Instantly share code, notes, and snippets.

@masayuki5160
Created September 12, 2013 06:17
Show Gist options
  • Save masayuki5160/6533585 to your computer and use it in GitHub Desktop.
Save masayuki5160/6533585 to your computer and use it in GitHub Desktop.
行番号をだすとき
SELECT @i:=@i+1 as rownum,`USER_ID` FROM (select @i:=0) as dummy,`USER_TBL`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment