How do you write a case insensitive query for both MySQL and Postgres?

后端 未结 11 2074
南方客
南方客 2020-11-29 23:39

I\'m running a MySQL database locally for development, but deploying to Heroku which uses Postgres. Heroku handles almost everything, but my case-insensitive Like statements

11条回答
  •  攒了一身酷
    2020-11-30 00:03

    If you're using PostgreSQL 8.4 you can use the citext module to create case insensitive text fields.

提交回复
热议问题