会者不难(关于sql) 我想做个查询: ‘select tz_name from t_zubie where tz_id=’(这后面该怎么写呢?tz_id是数字类型的,我想设置查询条件为tz_id等于一个外部自定义的变量,可不知该怎么连接起来。请高手指点) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 'select tz_name from t_zubie where tz_id='+变量就可以了阿! ‘select tz_name from t_zubie where tz_id=’+变量 数值类型'select tz_name from t_zubie where tz_id=' + Edit1.Text字符类型'select tz_name from t_zubie where tz_id=''' + Edit1.Text + '''' query1.Close;query1.SQL.Clear;query1.SQL.Add('select tz_name from t_zubie where tz_id=:Atz_Id');query1.ParamByName('Atz_Id').AsFloat:=mm;query1.OPen;mm为外部变量 'select tz_name from t_zubie where tz_id=' + strtoint(Edit1.Text) 在Delphi中如何使用VCL制作标题栏上的图标? 安装sql2005硬件的硬件要求 res文件调用 如何将插入oracle数据库的number字段的数值保留小数点后两位? 如何构件WEBSERVICE来接收客户程序的HTTP POST数据? "贴子回复次数大于跟给分次数 " 哪位告诉我这是为什么?? 几个很简单的问题,请帮我看看,谢谢! (新!新!新!)如何找回不能打开硬盘分区中的数据? 急,关于AcdSee的缩略图如何实现问题,请大侠救援 请大家帮忙,关于DLL应用问题,我只有10分 ADO缓存的问题,主从表关系. 使用delphi能得到单台电脑独有的信息吗?
就可以了阿!
‘select tz_name from t_zubie where tz_id=’+变量
'select tz_name from t_zubie where tz_id=' + Edit1.Text
字符类型
'select tz_name from t_zubie where tz_id=''' + Edit1.Text + ''''
query1.SQL.Clear;
query1.SQL.Add('select tz_name from t_zubie where tz_id=:Atz_Id');
query1.ParamByName('Atz_Id').AsFloat:=mm;
query1.OPen;
mm为外部变量