Quantcast
Channel: Active questions tagged cte - Database Administrators Stack Exchange
Viewing all articles
Browse latest Browse all 214

PostgreSQL skips WITH query

$
0
0

Consider this CTE:

WITH division_by_zero AS (  SELECT 1/0)SELECT 42

It returns 42 instead of raising an error. How can I force PostgreSQL to evaluate the SELECT 1/0?


Viewing all articles
Browse latest Browse all 214


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>