看板 PHP 關於我們 聯絡資訊
update stud_base set stud_name='who', stud_sex='2', stud_birthday='2000-01-01', stud_blood_type='', enroll_school='' where student_sn='4' 想請教一個關於資料庫欄位的問題 (資料庫是MySQL5.0) 我有一個資料庫欄位stud_blood_type 類型是tinyint 允許空字串 用以上的語法想要將資料儲存進資料庫 可是很奇怪的是 我用Xampp架設的時候 這段語法是OK的 可以順利寫入資料庫 把同樣的東西移動到另外一台機器 (用ISAPI驅動PHP) 這樣的語法變成錯誤的 請問這是我php.ini設定上有問題 還是資料庫設定有問題呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.240.131.70 ※ 編輯: chocho1981 來自: 210.240.131.70 (04/27 09:47) ※ 編輯: chocho1981 來自: 210.240.131.70 (04/27 09:47)
SmallBeeWayn:tinyint無法允許空字串, NULL != '' 04/27 10:55