Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ALTER TABLE city DROP CONSTRAINT city_uf_name_uri_key;
- ALTER TABLE city ADD UNIQUE (pais, uf, name_uri);
- update city x
- set name_uri = lower(trim(replace(x."name", ' ', '-')) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement