看板 PHP 關於我們 聯絡資訊
今天在資料庫新增了一個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