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?
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?
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.