Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I want all of the entries in my relation to be lower case.
I tried
ALTER TABLE tableName SET (columnName = lower(columnName));
but it didn't seem to work. Could someone point me in the right direction?
citext
UPDATE TABLE tableName SET columnName = lower(columnName);
Should work better :)
Edit:
The data you insert is up to you to insert lowercase, it wont be changed. If you need to do that, you can do it in a trigger or rule.
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
citext, provided by the additional module of the same name. More details.