错误1366:1366:错误的整数值:''对于列&subginory_id'在第1行 SQL语句:
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 :(得分:1)
您需要将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', '')
^^^^^^^^^^^^^^^
答案 1 :(得分:1)
''
不是整数(介于31和W1800之间)