–正常,别名使用引号且为大写,最外层select语句where条件不带双引号时,字段名可大写可小写
select * from (select id as “IDD” from tableName) where idd = 1;
–正常,别名使用引号且为大写,最外层select语句where条件不带双引号时,字段名可大写可小写
select * from (select id as “IDD” from tableName) where IDD = 1;
–正常,别名使用引号且为大写,最外层select语句where条件带双引号时,字段名必须与别名相同
select * from (select id as “IDD” from tableName) where “IDD” = 1;
–报错标识符无效,别名使用双引号且为大写,最外层select语句where条件带双引号时,字段名必须与别名相同
select * from (select id as “IDD” from tableName) where “idd” = 1;
oracle中字段别名带引号引发的标识符无效报错
最新推荐文章于 2024-06-04 22:50:03 发布