作者BNT (幹你娘世界沒真理)
看板PHP
標題[請益] 新增的欄位找不到
時間Sun Dec 9 21:48:51 2007
今天在資料庫新增了一個index欄位
$sql1="select Code,Song_Id,index
from song
order by Song_Id;";
結果
無法取得資料!
select Code,Song_Id,index from song order by Song_Id;
我另外用其他欄位測試都是正常的
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.162.172.219
推 pakker:`index` 12/09 21:56
推 yuan0258:index是關鍵字嗎? 12/09 23:15
推 LPH66:不清楚 但很有可能是...其實欄位名稱加``是好習慣 12/09 23:26
推 ckai1983:保留字? 12/09 23:26