4
I own a constraint
in the bank that is all with your name capitalized. As I do a count
to find the same one using the UPPER
? 'Cause I want to pass the where
a tiny name to return. This one of mine query is not working.
select count(*)
from all_cons_columns
where UPPER(constraint_name) = 'FK_od8ou6g1l9t7iufcp3o0to189';
That is, returns 0 when it should return 1. If I put the name as it is in the database returns 1.
That doesn’t suit me because I’ll always get the name in lowercase.
– Roknauta
You will receive where??
– Maniero
My situation is as follows: Imagine that in the bank the Constraint already exists. They ask me to check if it already exists. When they ask me, they tell me her name with the lower-case name. I would have to convert it to upper-case and then query it ? No, I want the select to return if it exists independently as I put in the Where.
– Roknauta
I don’t understand what you want, I don’t know what
constraint
It has to do with that, I don’t know where this information you’re saying comes from, I don’t know why you’re talking in lowercase now when the question is uppercase, or what the difficulty is. If you’re not gonna wear one collating then you have to make both sides uppercase or all minuscule, it doesn’t matter.– Maniero
I found the solution, I will post and maybe it is clearer what was my doubt.
– Roknauta