W
wtiebo
Unregistered / Unconfirmed
GUEST, unregistred user!
下面的程序在传参数时,总是传不过去:
with MyDataModule.Query2 do
begin
parambyname('P_field').AsString:=String(ComboBox1.Text);
parambyname('P_operator').AsString:=String(ComboBox2.Text);
if ComboBox1.Text='序号' then
parambyname('P_value').AsInteger:=StrToInt(Edit1.Text)
......
SQL语句在设计时定义如下:
Select *
From sale1
Where _field _operator _value
请问各位大虾,这是为何?
还有,在SQL语句中,多个参数之间怎样分隔(上面的三个参数是否正确)?
with MyDataModule.Query2 do
begin
parambyname('P_field').AsString:=String(ComboBox1.Text);
parambyname('P_operator').AsString:=String(ComboBox2.Text);
if ComboBox1.Text='序号' then
parambyname('P_value').AsInteger:=StrToInt(Edit1.Text)
......
SQL语句在设计时定义如下:
Select *
From sale1
Where _field _operator _value
请问各位大虾,这是为何?
还有,在SQL语句中,多个参数之间怎样分隔(上面的三个参数是否正确)?