content has lower-case or not in postgresql

harsh kumar

How can we check In PostgreSQL or SQL:

A string saved in database to lowercase OR uppercase?

For example, I have five records in my database table and I want to fetch only those records that have lowercase characters.

Here is my content table and id's in primary key

id    Content

 1     TEST
 2     Test
 3     TEst
 4     TESt
 5     TEST01

I need to fetch id 2,3,4 respectively which contains context value in lowercase.

Laurenz Albe

Add the following WHERE clause:

WHERE content <> upper(content)

That will only retrieve the rows that contain lower case characters.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why is JavaScript setting my div content to lower case?

From Dev

Drop table that has the name in lower case from the command line

From Dev

Example of algorithm which has different worst case upper bound, worst case lower bound and best case bounds?

From Dev

Example of algorithm which has different worst case upper bound, worst case lower bound and best case bounds?

From Dev

Alpha numeric lower case case and "-" ,

From Dev

Unix upper case to lower case

From Dev

Upper and Lower camel case

From Dev

Lower case enum Gson

From Dev

converting filenames to lower case

From Dev

Upper and lower case

From Dev

Trying to select content of div with mouse(highlight text) that has a lower z-index

From Dev

Trying to select content of div with mouse(highlight text) that has a lower z-index

From Dev

PostgreSQL GROUP BY LOWER() not working

From Dev

Unix tr command to convert lower case to upper AND upper to lower case

From Dev

Are class names allowed to be lower case

From Dev

Url rewrite to lower case not working

From Dev

Convert list to lower-case

From Dev

Java string not converted to lower case

From Dev

Lower case urls and trailing slash

From Dev

ORDER BY lower case of output column

From Dev

Convert string in variable lower case

From Dev

Convert file contents to lower case

From Dev

Convert multiple dataframes in lower case

From Dev

Convert file contents to lower case

From Dev

ORDER BY lower case of output column

From Dev

To lower case in PHP or MS SQL

From Dev

Detect index of lower case letters

From Dev

Converting Snake Case to Lower Camel Case (lowerCamelCase)

From Dev

Ignoring upper case and lower case in Java

Related Related

HotTag

Archive