当前位置: 代码迷 >> PB >> pb clicked事件里面怎么写sql
  详细解决方案

pb clicked事件里面怎么写sql

热度:96   发布时间:2016-04-29 08:29:56.0
pb clicked事件里面如何写sql
我想在点按钮的是执行一个sql查询,并且把值赋值到一个变量,是如何写啊
不好意思我是新手
语句也蛮简单是这样的
select bohhtbh into :tg_sjcon from [email protected] where bohbillno='102000030100450'
直接写报错,搞个变量,没报错,但是值取不到
sqlselect="select bohhtbh into :tg_sjcon from [email protected] where bohbillno='102000030100450'"
EXECUTE IMMEDIATE :sqlselect USING SQLCA;
大家帮帮忙!

------解决方案--------------------
@gfc 是个鸟意思?

string ls_tmp

select 字段名 into :ls_tmp
from 表
where 条件