关于SQL 的问题 在DELPHI中如果要查询的参数是个整形,该如何写SQL语句啊,各位高手! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 能不能给段具体的代码啊!var m_age:integer;select name,age from table1 where age= 'm_age' 是不是这样.? var m_age:integer;adoquery2.sql.add('select name,age from table1 where age=:m_age');parameters.parambyname('m_age').value:=m_age; parameters.parambyname('m_age').integer:=m_age; var m_age:integer;adoquery2.sql.add('select name,age from table1 where age='+inttostr(m_age));adoquery2.open; 在SQL文本里是不用引号的 楼上的比较直观 delphi菜鸟的求助!请大虾们指点! OnPaint的问题! 散分喽!CodeGear官方网站开通了,快去看看吧! 为什么刚刚安装操作系统的机器,用我的程序连接局域网内的另一机器内的SQL数据库时,总是连接失败!用ODBC连接一下就可以了! 能否使一个DOS窗口在运行时不显示或者最小化,运行完自动关闭? 请问如何在标准DBGrid上实践固定列? 如何提取mp3文件里的id信息 index is out of date 这是什么啊,大侠小侠女侠请出手,散分。 窗体最下化时触发的事件是什么? 怎样对含计算字段的表合计,并进行汇总打印?能给我点方法和建议吗 怎样然DBGird显示的记录刷新?
var m_age:integer;
select name,age from table1 where age= 'm_age' 是不是这样.?
adoquery2.sql.add('select name,age from table1 where age=:m_age');
parameters.parambyname('m_age').value:=m_age;
adoquery2.sql.add('select name,age from table1 where age='+inttostr(m_age));
adoquery2.open;