sql with as用法

在SQL中,"WITH AS"常常用于定义子查询的临时表或临时别名,这样的查询经常被称为CTE(Common Table Expressions),或者在较旧的数据库