SQL, PLSQL Enhancements and New Functions
摘要
This chapter explores the developer-focused SQL and PL/SQL enhancements introduced in Oracle Autonomous Database 23AI. It highlights key innovations such as the long-awaited native support for the Boolean data type, the powerful CHECKSUM analytic function for change detection, improved SQL readability through support for column aliases in GROUP BY and HAVING clauses, and native aggregation over INTERVAL datatypes. Additionally, the chapter introduces the automatic PL/SQL to SQL transpiler—an advanced feature that rewrites eligible procedural logic into optimized SQL to boost performance. Each section offers hands-on implementation guidance and real-world use cases that demonstrate how these capabilities streamline development workflows, enhance data analysis accuracy, and simplify SQL optimization. Comparisons with earlier approaches reveal how Oracle 23AI advances developer productivity and SQL efficiency, while end-of-section summaries reinforce the key takeaways and best practices for modern PL/SQL and SQL development.