Weird issues with Oracle Max Functions

Source: Internet
Author: User


The Oracle Max function generates a strange problem when writing another stored procedure, the following SQL statement www.2cto.com SELECT MAX (RE_DATE) INTO V_RE_DATE FROM T_RECORDINGWHERE ID = '20140901' is used'
It is reasonable to say that the query result based on this condition should be sqlcode = 1403, But it is strange that the following SQL EXCEPTION cannot be caught: EXCEPTION WHEN NO_DATA_FOUND THEN NULL; WHEN OTHERS THEN ERR_CODE: =-2000; ERR_MSG: = SQLERRM; RETURN; no error is returned during execution. Check the V_RE_DATE value by executing the command and the value is blank, if the value is null, The sqlcode = 1405 exception should also be reported. But the oracle execution engine has not reported any error. What is the problem? Write down this situation first today, I will study it later.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.