江
江林勝
Unregistered / Unconfirmed
GUEST, unregistred user!
組件的屬性如下:
Query1 DataBaseName: RT_RS
SQL: SELECT * FROM WQ@W1)
Params.@W1.Datatype:ftString
@w1.paramtypetinput
@w1.value.Type:string
SQL 的存儲過程如下:
CREATE PROCEDURE WQ (@W1 CHAR(10)) AS
SELECT * FROM WORKER WHERE F0001=@W1
表WORKER是建立在數據庫RT_RS里的
按鈕的Click事件為:
With Query1 do
begin
Close;
ParamByName('@W1').AsString:=Edit1.Text;
Execsql;
Open;
end;
執行後提示如下:
General SQL error.
Line 1:Incorrect syntax near '@p1'.
請問各位這該怎麼辦.
Query1 DataBaseName: RT_RS
SQL: SELECT * FROM WQ@W1)
Params.@W1.Datatype:ftString
@w1.paramtypetinput
@w1.value.Type:string
SQL 的存儲過程如下:
CREATE PROCEDURE WQ (@W1 CHAR(10)) AS
SELECT * FROM WORKER WHERE F0001=@W1
表WORKER是建立在數據庫RT_RS里的
按鈕的Click事件為:
With Query1 do
begin
Close;
ParamByName('@W1').AsString:=Edit1.Text;
Execsql;
Open;
end;
執行後提示如下:
General SQL error.
Line 1:Incorrect syntax near '@p1'.
請問各位這該怎麼辦.