43

I'm using PostgreSQL 9.1 and I have a users table with a login column.

login names are case-sensitive, for example Bob, MikE, john. I would like to transform all these records into lowercase. How can I do that?

Hannah Vernon
  • 70,928
  • 22
  • 177
  • 323
flyer88
  • 607
  • 2
  • 6
  • 7

1 Answers1

59

You can do this:

UPDATE table_name SET column=lower(column)

Refer to www.postgresql.org/docs/9.1/static/functions-string.html

kumar_2002
  • 956
  • 9
  • 12