起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 98|回复: 2

[请求]数据表中的列的值作为变量**

[复制链接]
发表于 2008-12-1 11:52:19 | 显示全部楼层 |阅读模式
lquery.CommandText:='select jhh from scbt_tzhd_record where send_userid='''+v_userid+''' or (get_userid='''+v_userid+''' and get_time not nil)';
  v_jhh:=lquery.Params.ParamByName('jhh').AsString;

  lquery.CommandText:='select * from scbt_gl_m where jhh='''+v_jhh+'''';
  lquery.Execute ;
提示jhh不存在
请教各位大侠
回复

使用道具 举报

发表于 2008-12-1 11:56:45 | 显示全部楼层
你把这个SQL语句放到数据库上执行能过吗?

scbt_tzhd_record  这个表有jhh这个字段吗?
回复 支持 反对

使用道具 举报

发表于 2008-12-1 13:08:57 | 显示全部楼层
v_jhh:=lquery.Params.ParamByName('jhh').AsString;

你的sql里面哪里写了这个参数?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-28 00:15 , Processed in 0.036446 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表