报ORA-00918:column ambiguously defined错误

lazyfox 2012-11-05 05:12:27
select *
from (select a.*,rownum rn
from (select t.vrid,
t.province,
t.customer,
t.cartypecode,
t.engine,
t.carnumber,
t.gboscode,
t.v3gvideocode,

t.enginenumber,
t.vincode,

t.platenumber,

t.sensorcharcoefficient,
t.factk,

t.theoryk,
t.tireradius,
t.backbridgespeed,
t.softmathk,
t.kissueddate,
t.installdate,
t.equmentchange,
t.installplace,
t.getinfodate,
t.salesman,
t.isoperationcar,
t.iscoverplace,
t.isbuttjoint,
t.operatesituation,
t.platenumber,
t.inforimportdate,
t.customertype,
t.iscanbuttjoint,
t.remark
from t_o_dayvehicle t ) a
where rownum <= 15)
where rn > 0


来个老问题。报ORA-00918:column ambiguously defined
知道列重复,可是我就这一张表查询阿,怎么会报错呢?我把 t.platenumber,随便写一个 t.platenumber as gh就可以了。但是是t.platenumber as platenumber就报这鸟错误阿。Shit!@
...全文
260 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lazyfox 2012-11-05
  • 打赏
  • 举报
回复
,。。。。。。。。有重复的查询。我真s*阿。。。。

17,382

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧