[报错信息处理] column does not exist 怎么处理?

yhdata_h3WExqsQ铂金二 显示全部楼层 发表于 2024-4-25 15:08:08 |阅读模式 打印 上一主题 下一主题
在数据集里使用了   
select  code as org_code1
     from table   
     where 1=1
       <org_code> and org_code1 = ?{org_code}
       </org_code>


然后在数据集里测试,输入不同的参数,数据成功变化,但是到页面上输入参数后,就报错  Error:  column "org_code1 "  does  not  exist  

这是为什么?

最佳答案

Malelee 铂金三 关注Ta

2024-04-25 15:08:09

你应该这么写吧 select code as org_code1 from table where 1=1 and code = ?{org_code}
查看完整内容
回复

使用道具 举报

精彩评论2

Malelee铂金三 显示全部楼层 发表于 2024-4-25 15:08:09
你应该这么写吧
select  code as org_code1
     from table   
     where 1=1
       <org_code> and code = ?{org_code}
       </org_code>
回复

使用道具 举报

yhdata_lyaa 显示全部楼层 发表于 2024-4-25 16:23:09
实际的列名是啥,有设置别名吗
回复

使用道具 举报

高级模式
您需要登录后才可以回帖 登录 | 免费注册

  • 官方微信

    欢迎关注永洪服务号!收费为0,价值无限

    扫码关注
  • 新浪微博

    让每位用户轻松挖掘数据价值!

    访问新浪微博
  • 智能客服
50W

会员等你来哦

Copyright   ©2012-2024  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |联系社区管理员|《永洪社区协议》
返回顶部