with values as (select * from A)
select * from values;
答案 0 :(得分:1)
没有双引号的保留字不能使用
with "values" as (select * from A)
select * from "values";
答案 1 :(得分:0)
values
是保留关键字,如果您确实想将其用作标识符,则需要双引号。
with "values" as (
select *
from a
)
select *
from "values";
使用双引号作为标识符是标准SQL,但是某些DBMS会忽略该标准,而改用其他字符。