如何来查询一整型的数据 在查询时,如何来查询一整数型的变量 Str1:= ' select * '+ ' from tablename ' 'where ID=Integer_var'Integer_var 是一INT变量 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Str1:= ' select * '+ ' from tablename ' 'where ID='+inttostr(Integer_var); Str1:= 'select *'+' from tablename'+' where ID='+inttostr(Integer_var)+''''; str :='select * from tablename wherer ID=:Integer_Var';Query中参数的问题,参数前加上 maohao : 冒号;XXXXQuery.ParamalByName('Interger_Var').value := Var;XXXXQuery.Open; Str1:= ' select * '+ ' from tablename ' 'where ID='inttostr(Integer_var); Str1:= ' select * '+ ' from tablename ' 'where ID='+ inttostr(Integer_var)还有就是用Param了,那么语句就应该写成这样Str1:= ' select * '+ ' from tablename ' 'where ID=:Integer_var'用这个执行Query1.close;Query1.ParamalByName('Interger_Var').asinteger:= Var;//Var是值Query1.Open; Str1:= ' select * '+ ' from tablename ' 'where ID='+Integer_var 看来是来迟拉,也写一个吧Str1:= ' select * '+ ' from tablename ' 'where ID='+inttostr(Integer_var); delphi 如何判断两个时间 相差大于2 分钟 如何解决改变DGGridEh中的值,数据库的数据也会跟着改变的。 ado中Filter的疑问 如何用ADO联结Paradox的数据表? 这样使COOLBAR实现拖动功能? 请大家评价一下Delphi7.0! 这段错哪里了?图片存入数据库的问题 下载了object pascal中文参考手册,可是打不开!急呀! 客户端通过socketconnection1连接服务端RemoteDataModule,服务端很占cpu 请问:AdvStringGrid中怎样取当前行? 有谁用过Skin控件,为什么不支持中文字体??? 有那为做个超市中带条码仪???
' from tablename '
'where ID='+inttostr(Integer_var);
XXXXQuery.ParamalByName('Interger_Var').value := Var;XXXXQuery.Open;
' from tablename '
'where ID='inttostr(Integer_var);
' from tablename '
'where ID='+ inttostr(Integer_var)还有就是用Param了,那么语句就应该写成这样
Str1:= ' select * '+
' from tablename '
'where ID=:Integer_var'用这个执行
Query1.close;
Query1.ParamalByName('Interger_Var').asinteger:= Var;//Var是值
Query1.Open;
' from tablename '
'where ID='+Integer_var
Str1:= ' select * '+
' from tablename '
'where ID='+inttostr(Integer_var);