DBGrid在新增儲存時如何指定要儲存的項目 |
缺席
|
terrenceman
一般會員 發表:7 回覆:7 積分:2 註冊:2007-01-05 發送簡訊給我 |
我有兩個DataBase利用ADOQuery的SQL寫出:
select ID_Product, ID_Line, ID_Formula,Comment ,ID_Number from LineandFormulaandComment,Product Where ID_Line=Line and ID_Formula=Formula 其中 ID_Product, ID_Line, ID_Formula,ID_Number屬於LineandFormulaandComment Line, Formula,Comment 屬於Formula 我想請問我在ADOQuery->Post()時該怎樣指定我要Post的只限於ID_Product, ID_Line, ID_Formula這三欄 而不去儲存Comment 的更動,且在Post的過程中是否可以告知ID_Product, ID_Line, ID_Formula的資訊 Post在不同的DataBase裡呢?? 在此虛心求教,感謝各位~~ |
herbert2
尊榮會員 發表:58 回覆:640 積分:894 註冊:2004-04-16 發送簡訊給我 |
|
Stallion
版主 發表:52 回覆:1600 積分:1995 註冊:2004-09-15 發送簡訊給我 |
你有兩個不同的帳號嗎?怎麼不同的帳號在自問自答?
你的問題用SQL語法就解決了,用兩次的UPDATE...SET...WHERE..的語法不就OK了~ ===================引 用 terrenceman 文 章=================== 我有兩個DataBase利用ADOQuery的SQL寫出: select ID_Product, ID_Line, ID_Formula,Comment ,ID_Number from LineandFormulaandComment,Product Where ID_Line=Line and ID_Formula=Formula 其中 ID_Product, ID_Line, ID_Formula,ID_Number屬於LineandFormulaandComment Line, Formula,Comment 屬於Formula 我想請問我在ADOQuery->Post()時該怎樣指定我要Post的只限於ID_Product, ID_Line, ID_Formula這三欄 而不去儲存Comment 的更動,且在Post的過程中是否可以告知ID_Product, ID_Line, ID_Formula的資訊 Post在不同的DataBase裡呢?? 在此虛心求教,感謝各位~~ |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |