V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tydl
V2EX  ›  程序员

PHP ODBC 连接 SQL server 如何将结果集转成数组

  •  
  •   tydl · Nov 20, 2018 · 1517 views
    This topic created in 2715 days ago, the information mentioned may be changed or developed.

    $query="SELECT * from tblWeight where LISTID='$listid' and DateDiff(dd,LISTTIME,getdate())<=2"; $result=odbc_exec($link,$query); $worklist = array(); while (odbc_fetch_row($result)) {

    	}
    

    想把结果集转成$worklist 的数组~

    1 replies    2018-11-20 16:51:44 +08:00
    way2create
        1
    way2create  
       Nov 20, 2018
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4671 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 10:07 · PVG 18:07 · LAX 03:07 · JFK 06:07
    ♥ Do have faith in what you're doing.