0
I need to select all records from a table where the letters of a given column are in the upper case (Uppercase).
Is there a function that does the case/minuscule differentiation in POSTGRES
?
Here is the picture of my table:
The column numero_fci
has several records as alphanumeric characters, however, some records are in low (lowercase) and in a SELECT
i would like to return only those who are in high box.
How should I proceed?
Already I thank you!
not for nothing, but you’re using the wrong kind, you’re storing a
UUID
usingcharacter(36)
– Tobias Mesquita
And what would be the right way?
– Bruno Duarte
I would advise you to use the type
UUID
, as for formatting, leave this to the application (C#
,Java
,NodeJS
,PHP
,Ruby
, etc has support forGUID/UUID
), but if you need to display theUUID
as text with capital letters in the Database, do:upper(numero_fci::TEXT)
– Tobias Mesquita
Okay @Tobiasmesquita, thanks for the tip!
– Bruno Duarte
An observation regarding the field type
character(36)
, is agent we do not generate this code but the recipe. Agent only stores the return information that the IRS gives us. So the kind of field in our bank is correct.– Bruno Duarte