Error (ORA-00923: FROM keyword not found where expected)

后端 未结 5 1904
悲哀的现实
悲哀的现实 2020-12-17 08:50
    select 
      country_olympic_name, 
      SUM(part_gold) as \'Number of Gold Medals\'
    From
      games.country,
      games.participation
   where
      par         


        
5条回答
  •  鱼传尺愫
    2020-12-17 09:13

    Identifiers need to be quoted with double quotes ("). Single quotes (') denote a character value (not a "name").

    Therefor you need to use:

    SUM(part_gold) as "Number of Gold Medals"
    

    More details in the manual:

    • Database Object Names and Qualifiers
    • Text literals

提交回复
热议问题