select (select a from abc where 1=1 order by a),(select a from bcd where 1=1 order by a) from dual 缺失右括号
时间: 2024-04-13 12:28:14 浏览: 82
select 的相关操作
如果查询语句中缺失右括号,您可以在最后添加一个右括号来修复语法错误。以下是修正后的查询语句:
```sql
SELECT
(SELECT a FROM abc WHERE 1=1 ORDER BY a),
(SELECT a FROM bcd WHERE 1=1 ORDER BY a)
FROM dual;
```
现在查询语句中的右括号已经补全,可以正确执行了。
阅读全文