💡 An unexpected use case for Oracle's VALUES clause: building SQL scripts!
Instead of maintaining strings or repetitive UNION ALL queries, VALUES lets you create inline tables and turn them into SQL commands.
A fun little SQL trick using GRANT statements:
martincarstenbach.com/2026/09/25/g...
martincarstenbach.com
Generating SQL scripts using the VALUES clause
Oracle AI Database 26ai adds a table value constructor to SELECT, allowing VALUES to act as a small inline table in the FROM or WITH clause (📕 docs). This is useful when you want to work with a sho…