kkhicher1
4 months ago
236
2
General

How to create a Unique Slug in SQL

Posted 4 months ago by kkhicher1

i have table name posts that have more than 10k row and i want to add a slug column that should be unique where post title is same. any solution!

If you are master in SQL please create a function....

example->

1st url = http://local.dev/this-is-post 2nd url= https//local.dev/this-is-post-2

Please sign in or create an account to participate in this conversation.