insert_select-binlog.result

来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· RESULT 代码 · 共 26 行

RESULT
26
字号
create table t1(a int, unique(a));insert into t1 values(2);create table t2(a int);insert into t2 values(1),(2);reset master;insert into t1 select * from t2;ERROR 23000: Duplicate entry '2' for key 1show binlog events;Log_name	Pos	Event_type	Server_id	End_log_pos	Infomaster-bin.000001	4	Format_desc	1	98	Server ver: VERSION, Binlog ver: 4master-bin.000001	98	Query	1	192	use `test`; insert into t1 select * from t2select * from t1;a12drop table t1, t2;create table t1(a int);insert into t1 values(1),(1);reset master;create table t2(unique(a)) select a from t1;ERROR 23000: Duplicate entry '1' for key 1show binlog events;Log_name	Pos	Event_type	Server_id	End_log_pos	Infomaster-bin.000001	4	Format_desc	1	98	Server ver: VERSION, Binlog ver: 4drop table t1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?