Skip to content

Instantly share code, notes, and snippets.

@alibitek
Last active June 5, 2016 11:53
Show Gist options
  • Save alibitek/28dbda6536c9ac83656037e8c97c9da2 to your computer and use it in GitHub Desktop.
Save alibitek/28dbda6536c9ac83656037e8c97c9da2 to your computer and use it in GitHub Desktop.
MySQL print reverse triangle
select repeat('* ', @n := @n - 1) from information_schema.tables, (select @n := 21) t limit 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment