SQL查询列中包含()() 执行的时候会报ORA-00923:未找找到要求的FROM关键字,
ORACLE会默认列中别名非字母汉字的符号为特殊字符,需用" "
例子:
SELECT to_char(t.gmt_create,'YYYYMMDD HH24miss')订单时间,
t.card_name姓名,
t.exchange_amount金额(分),
t.card_index卡索引,
t.core_trans_id交易核心流水,
t.order_no支付核心流水,
t.status交易状态,
t.real_channel_id渠道ID,
t.bank_resp_code银行返回码,
t.bank_resp_msg银行返回信息
FROMfxo_withdraw_apply t
wheret.core_trans_idin(
'O0060005201610260000001287929160'
)orderbyt.core_trans_id;
SELECT to_char(t.gmt_create,
t.bank_resp_msg银行返回信息
FROMfxo_withdraw_apply t
wheret.core_trans_idin(
'O0060005201610260000001287929160'
)orderbyt.core_trans_id;
SELECT to_char(t.gmt_create,
t.card_name姓名,
t.exchange_amount金额(分),
t.card_index卡索引,
t.core_trans_id交易核心流水,
t.order_no支付核心流水,
t.status交易状态,
t.real_channel_id渠道ID,
t.bank_resp_code银行返回码,
t.bank_resp_msg银行返回信息
FROMfxo_withdraw_apply t
wheret.core_trans_idin(
'O0060005201610260000001287929160'
)orderbyt.core_trans_id;
解决方法:
SELECT to_char(t.gmt_create,
t.exchange_amount "金额(分)",
t.card_index卡索引,
t.bank_resp_msg银行返回信息
FROMfxo_withdraw_apply t
wheret.core_trans_idin(
'O0060005201610260000001287929160'
)orderbyt.core_trans_id;
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。