当国家名称的长度大于货币名称的长度时,尝试将字段字符转换为大写时出现以下错误。
ORA-00923: FROM keyword not found where expected
00923. 00000 - "FROM keyword not found where expected"
这是我使用的 SQL 语句:
select
countryname.country, countryname.currencycode, currency.currencyname
case(
when length(countryname.country)> length (currency.currencyname)
then UCASE(countryname.country)
else
LCASE(countryname.country)
)end
from currency,countryname
where currency.currencycode=COUNTRYNAME.currencycode;