在应用程序中查询按钮点击事件如下:
Query1.SQL.Text :='select ID as 记录号,CrtDate as 采样时间,'+
'from db_test.db '+
'where ID=StrToInt(Edit1.text) '; //等于记录号
Query1.Open;
可是总是给出出错提示Capability not supported!如何将Edit1中输入的查询记录号应用于where语句中?
Query1.SQL.Text :='select ID as 记录号,CrtDate as 采样时间,'+
'from db_test.db '+
'where ID=StrToInt(Edit1.text) '; //等于记录号
Query1.Open;
可是总是给出出错提示Capability not supported!如何将Edit1中输入的查询记录号应用于where语句中?
str:=StrToInt(Edit1.text)
+'where ID='''+str+'''';
+' from db_test.db'
+' where ID='''+StrToInt(Edit1.text)+''''; //等于记录号
Query1.Open;
+' from db_test.db'
+' where 记录号='''+StrToInt(Edit1.text)+''''; //等于记录号
Query1.Open;
'from db_test.db '+
'where ID='+Edit1.text; //等于记录号
Query1.Open;
但是我不太熟悉这里的操作,不知道如何结贴,麻烦那位告诉我一下。谢谢
+' where ID='''+StrToInt(Edit1.text)+'''';
Query1.Open;