[問題] 有關 DBI more_results

看板Perl作者 (可愛小孩子)時間9年前 (2016/06/14 17:16), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
問題: 如果執行的 sql script 裡 select 跟 select 之間有其它指令時(insert、update、delete) 則使用 more_results 來獲取 multiple result sets 時會失效 例子: http://codepad.org/eOn4sedJ 第 24 行有個 insert into #t select 2 使得第 40 ~ 46 行要獲取 $data2 時得到空值 原本是期望會得到第 26 行的 select 3 不知道這個問題有解嗎? 還是只能在寫 sql script 時注意 select 跟 select 之間有沒有多餘指令 謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.221.80.36 ※ 文章網址: https://www.ptt.cc/bbs/Perl/M.1465895767.A.919.html
文章代碼(AID): #1NNyjNaP (Perl)
文章代碼(AID): #1NNyjNaP (Perl)