More about ADOquery |
尚未結案
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
I put 'delete from [OrderItems]' into the SQL String. when I try to active it, it pops up a message:
CommandText have no return result sets What's that mean?
Note: [OrderItems] is a tablename
Plz help me, I am really running out of time.. sniff
thanx for any kind people helping me
|
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
yes I did. I put:
'delete from [OrderItems]' into ADOQuery1, SQL Strings I want this sql occurs when the form show.
show I put:
ADOQuery1.EexcSQL;
under FormShow However, this message pops up when I try to 'Active' the ADOQuery
so, how can I execute the query is regardless at this point
|
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
引言: yes I did. I put: 'delete from [OrderItems]' into ADOQuery1, SQL Strings I want this sql occurs when the form show. show I put: ADOQuery1.EexcSQL; under FormShow However, this message pops up when I try to 'Active' the ADOQuery so, how can I execute the query is regardless at this point也不能用 TADOQuery.Active := True; 的方式. --- 每個人都是一本書 |
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
|
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
|
Justmade
版主 發表:94 回覆:1934 積分:2030 註冊:2003-03-12 發送簡訊給我 |
到現在還在問這個丫? 在兩天前不是說過 :
To delete all records at once, it is easier with SQL statement ADOQuery1.SQL.Text := 'delete from tablename';
ADOQuery1.ExecSQL; It is fine to put the suggested code in the onShow event of your form. 昨天不是再 confirm 過嗎? of casue you have to replace 'tablename' with your real table name 原來
1. 小弟的表達能力極差
2. 小弟說的不可信
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
|
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
|
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
|
Justmade
版主 發表:94 回覆:1934 積分:2030 註冊:2003-03-12 發送簡訊給我 |
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
|
Justmade
版主 發表:94 回覆:1934 積分:2030 註冊:2003-03-12 發送簡訊給我 |
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
|
Justmade
版主 發表:94 回覆:1934 積分:2030 註冊:2003-03-12 發送簡訊給我 |
You think my questions is hard to answer ? Then I think you are confused. The SOLE function that two line do is to empty the table you specify in the tablename. Nothing less, nothing more. If you have some file to post, post here :
http://delphi.ktop.com.tw/forum.asp?FORUM_ID=97 If you have some pict to show, put here :
http://delphi.ktop.com.tw/forum.asp?FORUM_ID=130
and read this :
http://delphi.ktop.com.tw/topic.php?TOPIC_ID=7332
|
Vashee
初階會員 發表:38 回覆:87 積分:25 註冊:2003-03-31 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |