Home > database > Oracle stored in the process of the EXECUTE IMMEDIATE execution result is empty when how to continue
Oracle stored in the process of the EXECUTE IMMEDIATE execution result is empty when how to continue
Time:10-25
Oracle stored in the process of the EXECUTE IMMEDIATE execution result is empty when how to continue? The EXECUTE IMMEDIATE P_SQL_QUERY INTO P_NUM; P_SQL_QUERY inside is select count (1) the from t P_num definition is number type, now stored procedure execution error, because the results of the P_SQL_QUERY is null, don't know how to deal with now, in fact, I just want P_SQL_QUERY results is not empty, but as a result of the free, cause an error cannot continue, great god, please give directions!!!!!!
CodePudding user response:
The count without data is 0, there is having it behind you
CodePudding user response:
P_SQL_QUERY there are group by, if there is one and the free field value is null, the proposal first behind the where the null first filtered out