我遇到的问题是缩短了从SQL查询(Oracle ODBC)创建的关联数组的键。我以前从来没有见过这个。使用下面的SQL数组最终为
0:
UPSTREAMCI_LOGI => xxxxxxxxxxxxxxxxxxxxxxxxxxx
DOWNSTREAM_LO => xxxxxxxx
$sql = "SELECT UPSTREAMCI_LOGICAL_NAME, DOWNSTREAMCI_LOGICAL_NAME WHERE SYSMODTIME >= TO_DATE('2017-04-29', 'yyyy-mm-dd')";
$result = odbc_exec($connect, $sql);
$dbinfo = array();
while ($row = odbc_fetch_array($result)) {
$dbinfo[] = $row;
}