求助 由一个变量a表b中有字段csql.add('select c from b where c=a');语句错误,该如何写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sql.add('select c from b where c='+''''+a+''''); sql.add('select c from b where c=:aa');parambyname('aa').asstring:=a; 如果c是字符型,楼上就行。 如果是int sql.add('select c fom b where c='+IntToStr(a)); 字段C为字符型:sql.add('select c from b where c='+''''+a+'''');字段为数值型:sql.add('select c from b where c='inttostr(a)); Delphi 如何清理IE缓存和cookies 【请教】图形问题! 这个问题一直没人能解答出来..请看... 如何在delphi中把需要打印的内容输出到excell中,急需例子和源码 关于socket中ctNonBlocking与ctBlocking的问题求教 有关delphi存为excel的问题 面向对象中对覆盖概念的疑问! 如何用treeview来做界面的切换啊 如何使Dbgrid隔行换颜色 Delphi的送分小问题 深圳的Delphi+SQL Server程序员多少钱一个月? 如何上EDIT框里只能输入“M”和“F”啊?
parambyname('aa').asstring:=a;
如果是int
sql.add('select c fom b where c='+IntToStr(a));
sql.add('select c from b where c='+''''+a+'''');
字段为数值型:
sql.add('select c from b where c='inttostr(a));