oracle错误-from keyword not found where expected

本文介绍了一个具体的SQL语法错误案例——“fromkeywordnotfoundwhereexpected”,并详细解析了导致该错误的原因,即多余的‘end’关键字。通过对错误示例的分析,帮助读者理解如何避免和解决类似的SQL语法问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在该程序的时候遇到了这个错误,在网上查找时发现时申请了语法错误,所以出现这个错误的时候要检查下自己的sql语法。

from keyword not found where expected,sql语法错误,多了一些无用的符号或是字符影响到sql

 

举列:select e.juniorname,
       substr(e.furnacenumber,6,2) as fur,
       sum(e.one) one,
       round(sum(e.DLtime),3) DLtime,
       round(sum(e.LFtime),3) LFtime,
       round(sum(e.DLtime) / sum(e.one),3) as oneDLtime,
       round(sum(e.LFtime) / sum(e.one),3) as  oneLFtime,
       round(sum(e.dayendweight),3) dayendweight,
       round(sum(e.daydl),3) daydl,
       round(sum(e.daylf),3) daylf,
       round(sum(e.endweight),3) endweight,
       round(sum(e.dl),3) dl,
       round(sum(e.lf),3) lf,
      
round(sum(e.dl)/sum(e.endweight),3)  end as yldanhao
  from aaaa e

   where  e.plantid='01'
group by e.juniorname,substr(e.furnacenumber,6,2);

此语多中多了end。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值