问个dbaccess中select的问题

发布于 2022-06-23 13:02:54 字数 3057 浏览 18 评论 1

dbaccess数据库中:
table中有表:function_define
Column name          Type                                    Nulls

func_name            char(15)                                no
func_desc            char(150)                               no
func_define          char(500)                               no
para_num             integer                                 yes
return_num           integer                                 yes
temp                 char(10)                                   yes

执行select语句
SQL:   New  Run  Modify  Use-editor  Output  Choose  Save  Info  Drop  Exit
Modify the current SQL statements using the SQL editor.

----------------------- test@onlietest --------- Press CTRL-W for Help --------

select          *   from function_define

----------------------------------------------------------
在运行结果中可以找到:

func_name    city_premium
func_desc    取?单位?险种?版别?年?月趸交保费累计
func_define  select sum(premium),center_code,s01,s03,year_month,s04 from city_f
             eem where center_code=? and s01=? and s03=? and mid(year_month,1,4
             )=? and year_month =? and s04='5' group by center_code,s01,s03,yea
             r_month,s04
para_num     5
return_num   6
temp

但是当运行下列select语句时
select    *   from function_define
            where func_name=city_premium
找不到city_premium
提示: 217: Column (city_premium) not found in any table in the query (or SLV is u

请问是我哪里做错了么

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏大泽ㄣ 2022-06-23 19:38:13

你的表function_define里确实没有city_premium啊

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文