mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
13 lines
594 B
Text
13 lines
594 B
Text
|
drop table if exists t1;
|
||
|
create table t1 (id int unsigned not null auto_increment, code tinyint unsigned not null, name char(20) not null, primary key (id), key (code), unique (name)) type=bdb;
|
||
|
|
||
|
insert into t1 (code, name) values (1, 'Tim'), (1, 'Monty'), (2, 'David'), (2, 'Erik'), (3, 'Sasha'), (3, 'Jeremy'), (4, 'Matt');
|
||
|
select id, code, name from t1 order by id;
|
||
|
|
||
|
update ignore t1 set id = 8, name = 'Sinisa' where id < 3;
|
||
|
select id, code, name from t1 order by id;
|
||
|
update ignore t1 set id = id + 10, name = 'Ralph' where id < 4;
|
||
|
select id, code, name from t1 order by id;
|
||
|
|
||
|
drop table t1;
|