user_var-binlog.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. create table t1 (a varchar(50));
  2. reset master;
  3. SET TIMESTAMP=10000;
  4. SET @`a b`='hello';
  5. INSERT INTO t1 VALUES(@`a b`);
  6. set @var1= "';aaa";
  7. SET @var2=char(ascii('a'));
  8. insert into t1 values (@var1),(@var2);
  9. show binlog events from 79;
  10. Log_name Pos Event_type Server_id Orig_log_pos Info
  11. master-bin.000001 79 User var 1 79 @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
  12. master-bin.000001 120 Query 1 120 use `test`; INSERT INTO t1 VALUES(@`a b`)
  13. master-bin.000001 184 User var 1 184 @`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
  14. master-bin.000001 226 User var 1 226 @`var2`=_latin1 0x61 COLLATE latin1_swedish_ci
  15. master-bin.000001 264 Query 1 264 use `test`; insert into t1 values (@var1),(@var2)
  16. /*!40019 SET @@session.max_insert_delayed_threads=0*/;
  17. SET @`a b`:=_latin1 0x68656C6C6F COLLATE `latin1_swedish_ci`;
  18. use test;
  19. SET TIMESTAMP=10000;
  20. INSERT INTO t1 VALUES(@`a b`);
  21. SET @`var1`:=_latin1 0x273B616161 COLLATE `latin1_swedish_ci`;
  22. SET @`var2`:=_latin1 0x61 COLLATE `latin1_swedish_ci`;
  23. SET TIMESTAMP=10000;
  24. insert into t1 values (@var1),(@var2);
  25. drop table t1;