Hacker News new | past | comments | ask | show | jobs | submit login

No, CTEs do not have local scope, at least not like variables. CTEs are statement-scoped; no matter how many SQL statements you have in your current scope, your CTE vanishes after the first statement terminates.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: