I want to do something like:
if ((select count(id) from abc where ...) > variableINT) then .....
Why does this doesn´t work properly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do the following in your stored procedure (I assume you basic knowledge of declaring variables and writing queries) :
Declare a variable count_id :
count_id NUMBER;Then run your query :
select count(id) into count_id from abc where ...Then you can test that variable :
if (count_id > ...) then .... end if