Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php数组元素大小有限_Php_Mysql_Komodo - Fatal编程技术网

php数组元素大小有限

php数组元素大小有限,php,mysql,komodo,Php,Mysql,Komodo,我正在从数据库中获取行,但表的一个列名太大,即“Booking\u Physical\u Location\u Id” 除了最后一个字母“d”,我得到的是列名 这是我的代码片段: $Con = $this->OpenMSSqlConnection($this->DBObject); $rs = odbc_exec($Con, $q); $Result = ''; while ($row = odbc_fetch_array($rs)) { $Result[] = $row

我正在从数据库中获取行,但表的一个列名太大,即“Booking\u Physical\u Location\u Id”

除了最后一个字母“d”,我得到的是列名

这是我的代码片段:

$Con = $this->OpenMSSqlConnection($this->DBObject);

$rs = odbc_exec($Con, $q);

$Result = '';
while ($row = odbc_fetch_array($rs))
{
    $Result[] = $row;  
}
unset($rs);    
return $Result;
下面是$row数组的var_转储结果

 array(36) {
  'Booking_Id' =>
  string(15) "103090000000242"
  'Identity_Column' =>
  string(3) "506"
  'Article_Tracking_No' =>
  string(13) "EZ454576987PK"
  'Reference_Id' =>
  NULL
  'Client_Id' =>
  string(15) "103090000000074"
  'Service_Id' =>
  string(1) "2"
  'Delivery_Area_Id' =>
  string(3) "319"
  'To_Location_Id' =>
  string(1) "1"
  'From_Location_Id' =>
  string(3) "308"
  'Booking_Physical_Location_Id' =>
  string(1) "9"
  'Destination_Physical_Location_I' =>
  string(1) "1"
  'Reason_Id' =>
  NULL
  'Total_Charges' =>
  string(1) "0"
  'Article_Status_Id' =>
  string(1) "1"
  'Booking_Date' =>
  string(23) "2015-03-18 10:02:01.803"
  'Booking_Mode_Id' =>
  string(1) "1"
  'Entry_Location_Id' =>
  string(3) "309"
  'Delivery_Date' =>
  NULL
  'Delivery_By' =>
  NULL
  'Delivery_Location_Id' =>
  NULL
  'Delivery_Mode_Id' =>
  NULL
  'Receipient_Title' =>
  string(7) "FGHJGFD"
  'Receipient_Address' =>
  string(5) "GHJHG"
  'Receipient_Contact_No' =>
  string(3) "554"
  'Receipient_Mobile_No' =>
  NULL
  'Article_Wamount' =>
  string(4) "2142"
  'Booking_By' =>
  string(3) "116"
  'Service_Charges_Location_Detail' =>
  NULL
  'Transit_State_Id' =>
  string(1) "2"
  'Received_By' =>
  NULL
  'Shift_Id' =>
  string(1) "1"
  'Commision' =>
  NULL
  'GST' =>
  NULL
  'Other_Charges' =>
  NULL
  'Invoice_Id' =>
  NULL
  'msrepl_tran_version' =>
  string(36) "00000000-0000-0000-0000-000000000000"
}

php中没有键的长度限制,除了脚本的内存限制
表中有两个不同的字段
'Booking\u Physical\u Location\u Id'
'Booking\u Physical\u Location\u I'


您可以使用
DESC TABLE\u NAME

来验证这一点,您可以使用var\u dump$Result并将其添加到您的问题中吗?您确定列名为Booking\u Physical\u Location\u Id而不是Booking\u Physical\u Location\u I您确定列名为
Booking\u Physical\u Location\u Id
我确定列名。我添加了$row数组的var_转储