sql – 错误(ORA-00923:在预期的情况下找不到FROM关键字)
发布时间:2020-12-12 08:50:14 所属栏目:MsSql教程 来源:网络整理
导读:select country_olympic_name,SUM(part_gold) as 'Number of Gold Medals' From games.country,games.participation where participation.country_isocode = country.country_isocode group by country_olympic_name; 我已经收到错误ORA-00923:FROM关键字没
select country_olympic_name,SUM(part_gold) as 'Number of Gold Medals' From games.country,games.participation where participation.country_isocode = country.country_isocode group by country_olympic_name; 我已经收到错误ORA-00923:FROM关键字没有找到预期,不知道为什么,请帮助 解决方法标识符需要引用双引号(“).单引号(‘)表示一个字符值(而不是”名称“).因此您需要使用: SUM(part_gold) as "Number of Gold Medals" 手册中的更多细节: > http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements003.htm#i42617 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |