推 shadow0828: where columns ? 01/19 16:13
→ shadow0828: 沒有寫要塞的欄位名稱? 01/19 16:13
→ Mirage: 有指定column..忘記打 error顯示錯誤好像是在那個select 01/19 16:42
→ Mirage: 的子查詢那邊orz 01/19 16:42
→ Mirage: 好奇子查詢是不是不能這樣用Orz 01/19 16:46
推 moyasi: 我猜原po的做法是想 insert into 的table_name用select找 01/20 12:17
→ moyasi: 應該要用execute才有辦法做吧 01/20 12:18
→ Mirage: 喔喔!我再試看看QQ 謝謝! 01/20 14:25
推 streetbad: insert into tablen(column1,columns....) 01/20 16:46
→ streetbad: select column1,column2.... from table0 where... 01/20 16:46
→ streetbad: 這樣的話? 01/20 16:46
→ Mirage: column名稱都是固定已知的 只要要insert進去的table享用子 01/20 19:32
→ Mirage: *想用子查詢找出來 像6F說的這樣orz 01/20 19:33
→ Mirage: tableN名稱存在Table0 平常不會知道 01/20 19:34
→ Mirage: 抱歉問題好像沒解釋清楚Orz 01/20 19:35
※ 編輯: Mirage (140.112.175.91), 01/20/2017 19:42:25
※ 編輯: Mirage (140.112.175.91), 01/20/2017 19:47:23
推 streetbad: 這樣的話應該只能用參數搭配execute了 參數去接要寫入 01/23 14:32
→ streetbad: 的table name 然後insert的部分用字串組 最後execute 01/23 14:32
→ Mirage: 對execute還不熟,我再研究看看,謝謝! 01/23 21:01