Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle 缺少左括号错误_Oracle_Oracle10g - Fatal编程技术网

Oracle 缺少左括号错误

Oracle 缺少左括号错误,oracle,oracle10g,Oracle,Oracle10g,在Oracle中运行查询时出现左括号缺失错误,正如Gurvinder(@GurV)首先指出的,表是Oracle中的保留关键字。您可以通过在双引号中转义表继续当前查询,即 select * from student3 where marks > (select avg(marks) from table) 但是您可能希望避免使用table来命名数据库表。table是一个保留关键字 select * from student3 where marks > (select av

在Oracle中运行查询时出现左括号缺失错误

,正如Gurvinder(@GurV)首先指出的,
是Oracle中的保留关键字。您可以通过在双引号中转义
继续当前查询,即

select * 
  from student3
 where marks > (select avg(marks) from table)

但是您可能希望避免使用
table
来命名数据库表。

table
是一个保留关键字
select * 
from student3
where marks > (select avg(marks) from "table")