ORA-00904:invalid identifier

oracle 专栏收录该内容
14 篇文章 0 订阅

这个提示是:你的sql语句有写错的地方如:

select count(1) from (
SELECT         
a.id AS "id",   
a.production_batch AS "productionBatch",   
a.sales_order_number AS "salesOrderNumber",   
a.manufacturer AS "manufacturer",   
a.purchases_units AS "purchasesUnits",   
a.sale_date AS "saleDate",   
a.upload_date AS "uploadDate",   
a.drugs_name AS "drugsName",   
a.product AS "product",   
a.approval_number AS "approvalNumber",   
a.sales_volume AS "salesVolume",   
a.create_by AS "createBy.id",   
a.create_date AS "createDate",   

a.update_by AS "updateBy .id", 
  
a.update_date AS "updateDate",   
a.remarks AS "remarks",   
a.del_flag AS "delFlag",   
a.drug_coding AS "drugCoding",   
a.approval_species AS "approvalSpecies",   
a.type_approval AS "typeApproval",   
a.min_pack_unit AS "minPackUnit",   
a.validity AS "validity"      
FROM sales_data a           
)

这样就是多个空格,就会报错。

其实用二分法就可以找到原因

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值