collate keyword in mysql What does it mean?

TABLE `tb_order` the CREATE ( 
  ` order_id` VARCHAR (50) the COLLATE utf8_bin the COMMENT the DEFAULT NULL 'Order ID', 
  `payment` VARCHAR (50) the COLLATE utf8_bin the COMMENT the DEFAULT NULL 'exact amount actually paid to two decimal places; unit: million. as: 200.07, showing: 200 points 7 ', 
  `payment_type` int (2) the COMMENT the DEFAULT NULL' payment type, 1, online payment, 2, COD ', 
  ` post_fee` VARCHAR (50) NULL the DEFAULT the COLLATE utf8_bin the COMMENT 'International accurate to 2 decimal places; unit: eg: 200.07, showing: 200 7 points.', 
  `status` int (10) the COMMENT the DEFAULT NULL 'state: 1, non-payment, 2, paid, 3, unfilled, 4, has shipped, 5, the transaction is successful, 6, trading closed ', 
  `create_time` the COMMENT datetime NULL the DEFAULT' order creation time ', 
  ` update_time` the COMMENT datetime NULL the DEFAULT' order update ', 
  `payment_time` datetime DEFAULT NULL COMMENT 'time of payment', 
  `consign_time` datetime DEFAULT NULL COMMENT 'delivery time'
  `end_time` datetime DEFAULT NULL COMMENT 'completion time', 
  KEY` status` ( `status`),
  `close_time` datetime DEFAULT NULL COMMENT 'trading off time', 
  (20 is) the COLLATE utf8_bin the COMMENT the DEFAULT NULL 'stream name' shipping_name` VARCHAR`, 
  `shipping_code` VARCHAR (20 is) the COLLATE utf8_bin the COMMENT the DEFAULT NULL 'single stream number', 
  ` user_id `bigint (20) DEFAULT NULL cOMMENT ' user ID', 
  ` buyer_message` VARCHAR (100) the COLLATE utf8_bin the cOMMENT the DEFAULT NULL 'buyer message', 
  `buyer_nick` VARCHAR (50) the COLLATE utf8_bin the cOMMENT the DEFAULT NULL 'nickname buyers', 
  ` buyer_rate` int (2) DEFAULT NULL COMMENT ' evaluate whether buyers', 
  UNIQUE KEY order_id` `(` order_id`) the USING BTREE, 
  KEY create_time` `(` create_time`), 
  KEY buyer_nick` `(` buyer_nick`),
  KEY `payment_type` (`payment_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

  

collate data for the collation of the table, how to specify the data set is ordered.

Guess you like

Origin www.cnblogs.com/xinruyi/p/11079982.html