2014-08-28 31 views
0

錯誤1366:1366:不正確的整數值:「」列「subcategory_id」在行1個 SQL語句:不正確的整數值通過MySQL工作臺導入CSV時到表

INSERT INTO `db`.`shelf` (`shelf_id`, `model_code_name`, `customer_friendly_name`, `sku_code`, `description`, `unitmeasure_id`, `category_id`, `subcategory_id`, `colour`, `size`, `vendor_id`) 
VALUES ('919025', '', 'MS919025', 'NULL', '1', '3', '31', '', 'W1800*D900*H724MM', '10', '') 

回答

0

''不整數(在31和W1800之間)

0

你需要做的的subcategory_id值作爲整數值,而不是''

所以查詢應該是這樣

INSERT INTO db.shelf (shelf_id, model_code_name, customer_friendly_name, sku_code, description, unitmeasure_id, category_id, subcategory_id, colour, size, vendor_id) 
VALUES ('919025', '', 'MS919025', 'NULL', '1', '3', '31', someintegervalue, 'W1800*D900*H724MM', '10', '') 
                  ^^^^^^^^^^^^^^^