1366要怎么處理?求完整代碼
--輸入
?SHOW CREATE TABLE tdb_goods;?
--輸出
CREATE TABLE `tdb_goods` (
? `goods_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
? `goods_name` varchar(150) NOT NULL,
? `goods_cate` varchar(40) NOT NULL,
? `brand_name` varchar(40) NOT NULL,
? `goods_price` decimal(15,3) unsigned NOT NULL DEFAULT '0.000',
? `is_show` tinyint(1) NOT NULL DEFAULT '1',
? `is_saleoff` tinyint(1) NOT NULL DEFAULT '0',
? PRIMARY KEY (`goods_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
2020-09-27
字符編碼不對,插入的字符編碼格式和創建表時定義的編碼格式不一致,可以將建表的編碼格式改為GBK,UTF8