[SQL ] 想問SQL語法

看板Database作者 (neo)時間12年前 (2013/09/11 17:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
請問各位 我有A,B兩個資料表 每個資料表 有id, colunm1,column2 如果我用recordset選取兩個資料表, recordset要轉印到excel 以下 table C是想像的TABLE 最終我要用 Sheets(1).Range("a1").CopyFromRecordset rst 來轉印到excel ########我想要的選法 id => table C id A 的 column1 =>>> table C的 D1 B 的 column1 =>>> table C的 D2 A的column1-B的column2 =>>>>>>table C的D3 且ID要介於 10到100 ########## 請問這個rst.open SQL 寫法 要怎麼寫呢? 我用的是access and excel 謝謝各位~ -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.185.87.21
文章代碼(AID): #1IC37kIr (Database)
文章代碼(AID): #1IC37kIr (Database)