Alphanumeric case in-sensitive sorting in postgres

前端 未结 6 1163
青春惊慌失措
青春惊慌失措 2020-12-17 09:33

I am new to postrges and want to sort varchar type columns. want to explain the problem with with below example:

table name: testsorting

   order             


        
6条回答
  •  盖世英雄少女心
    2020-12-17 10:11

    As far as I'm concerned, I have used the PostgreSQL module citext and used the data type CITEXT instead of TEXT. It makes both sort and search on these columns case insensitive.

    The module can be installed with the SQL command CREATE EXTENSION IF NOT EXISTS citext;

提交回复
热议问题