Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/80.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.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
Sql ORA-00904:;纪律”&引用;运动“否”:无效的标识符_Sql_Oracle - Fatal编程技术网

Sql ORA-00904:;纪律”&引用;运动“否”:无效的标识符

Sql ORA-00904:;纪律”&引用;运动“否”:无效的标识符,sql,oracle,Sql,Oracle,请帮助,我的数据库中确实存在表和列 select sport_name from GAMES.sport where sport.sport_no = discipline.SPORT_NO; 试试这个 select sport_name from GAMES.sport where sport.sport_no = discipline.SPORT_NO; SPORT.SPORT\u no是SPORT表的主键 和 规程。SPORT\u NO是规程表中的外

请帮助,我的数据库中确实存在表和列

select 
  sport_name
from 
  GAMES.sport
where 
  sport.sport_no = discipline.SPORT_NO;
试试这个

select 
  sport_name
from 
  GAMES.sport
where 
  sport.sport_no = discipline.SPORT_NO;
SPORT.SPORT\u no
SPORT
表的主键

规程。SPORT\u NO
规程
表中的外键

SPORT.SPORT\u no
SPORT
表的主键


规程.SPORT\u NO
规程
表中的外键

查询中规程表在哪里?查询中规程表在哪里?请不要在
where
子句中使用隐式联接。使用SQL 92引入的“现代”显式
JOIN
语法。请不要在
where
子句中使用隐式联接。使用SQL 92引入的“现代”显式
JOIN
语法。
select 
  sport_name
from 
  SPORT
  inner join 
     DISCIPLINE
        on SPORT.sport_no = DISCIPLINE.SPORT_NO;