博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于ORACLE查询列加()or () 报ORA-00923:未找找到要求的FROM关键字
阅读量:4101 次
发布时间:2019-05-25

本文共 1887 字,大约阅读时间需要 6 分钟。

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 银行返回信息

  FROM fxo_withdraw_apply t

where t.core_trans_id  in (

'O0060005201610260000001287929160'

order by t.core_trans_id;

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 银行返回信息

  FROM fxo_withdraw_apply t

where t.core_trans_id  in (

'O0060005201610260000001287929160'

order by t.core_trans_id;

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 银行返回信息

  FROM fxo_withdraw_apply t

where t.core_trans_id  in (

'O0060005201610260000001287929160'

order by t.core_trans_id;

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 银行返回信息

  FROM fxo_withdraw_apply t

where t.core_trans_id  in (

'O0060005201610260000001287929160'

order by t.core_trans_id;

解决方法:

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 银行返回信息

  FROM fxo_withdraw_apply t

where t.core_trans_id  in (

'O0060005201610260000001287929160'

order by t.core_trans_id;

你可能感兴趣的文章
(python版)《剑指Offer》JZ01:二维数组中的查找
查看>>
(python版)《剑指Offer》JZ06:旋转数组的最小数字
查看>>
(python版)《剑指Offer》JZ13:调整数组顺序使奇数位于偶数前面
查看>>
(python版)《剑指Offer》JZ28:数组中出现次数超过一半的数字
查看>>
(python版)《剑指Offer》JZ30:连续子数组的最大和
查看>>
(python版)《剑指Offer》JZ02:替换空格
查看>>
JSP/Servlet——MVC设计模式
查看>>
使用JSTL
查看>>
Java 8新特性:Stream API
查看>>
管理用户状态——Cookie与Session
查看>>
最受欢迎的前端框架Bootstrap 入门
查看>>
JavaScript编程简介:DOM、AJAX与Chrome调试器
查看>>
通过Maven管理项目依赖
查看>>
通过Spring Boot三分钟创建Spring Web项目
查看>>
Spring的IoC(依赖注入)原理
查看>>
Java编程基础:static的用法
查看>>
Java编程基础:抽象类和接口
查看>>
Java编程基础:异常处理
查看>>
Spring MVC中使用Thymeleaf模板引擎
查看>>
Spring处理表单提交
查看>>