使用ALTER更改錯誤我已經使用這個查詢更改表字段: ALTER TABLE `recordstudent` CHANGE `DATE` `DATE` TEXT NOT NULL UNIQUE;
但我收到此錯誤: ERROR 1170 (42000): BLOB/TEXT column 'DATE' used in key specification without a key length
嗨,我試圖改變我的表列時採取 創建時的當前時間戳記,我得到 誤差#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('inspection_number' NOT
我試圖用mymodule_views_pre_execute來改變一個視圖的查詢和使用了devel的找到它當前正在使用的SQL查詢,這是下面: SELECT node.nid AS nid FROM node node LEFT JOIN field_data_field_date
field_data_field_date ON node.nid = field_data_field_date