blob: 8dea4dd14f11cc03ab7cdaa956ba14d29ba2a6a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
SET @@session.default_storage_engine = 'InnoDB';
include/master-slave.inc
[connection master]
connection master;
create table t1 (a int, b int as (a+1));
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) GENERATED ALWAYS AS (`a` + 1) VIRTUAL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
insert into t1 values (1,default);
insert into t1 values (2,default);
select * from t1;
a b
1 2
2 3
connection slave;
select * from t1;
a b
1 2
2 3
connection master;
drop table t1;
connection slave;
include/rpl_end.inc
|