Skip to content

Instantly share code, notes, and snippets.

@miloskroulik
Last active August 29, 2015 14:09
Show Gist options
  • Save miloskroulik/ccc1dcff52ef3862437a to your computer and use it in GitHub Desktop.
Save miloskroulik/ccc1dcff52ef3862437a to your computer and use it in GitHub Desktop.
How to generate slug from (Czech) string in PostgreSQL 9.3 #postgresql
  1. install extension unaccent
  2. use this snippet: unaccent(replace(lower(<your-string>),' ','-'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment