mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
err000001.test BitKeeper file /home/sasha/src/bk/mysql/mysql-test/t/3.23/err000001.test
ins000001.test BitKeeper file /home/sasha/src/bk/mysql/mysql-test/t/3.23/ins000001.test ins000001.result BitKeeper file /home/sasha/src/bk/mysql/mysql-test/r/3.23/ins000001.result
This commit is contained in:
parent
f11df2ad35
commit
3a33042cb6
3 changed files with 18 additions and 0 deletions
4
mysql-test/r/3.23/ins000001.result
Normal file
4
mysql-test/r/3.23/ins000001.result
Normal file
|
@ -0,0 +1,4 @@
|
|||
id domain
|
||||
1 mysql.com
|
||||
2 hotmail.com
|
||||
3 aol.com
|
3
mysql-test/t/3.23/err000001.test
Normal file
3
mysql-test/t/3.23/err000001.test
Normal file
|
@ -0,0 +1,3 @@
|
|||
use test;
|
||||
drop table if exists foo;
|
||||
!$1146 insert into foo values(1);
|
11
mysql-test/t/3.23/ins000001.test
Normal file
11
mysql-test/t/3.23/ins000001.test
Normal file
|
@ -0,0 +1,11 @@
|
|||
use test;
|
||||
drop table if exists emails;
|
||||
drop table if exists domain;
|
||||
drop table if exists domain;
|
||||
create table emails (email varchar(50));
|
||||
insert into emails values ('sasha@mysql.com'),('monty@mysql.com'),
|
||||
('foo@hotmail.com'),('foo@aol.com'),('bar@aol.com');
|
||||
create table domain(id int not null auto_increment primary key,
|
||||
domain varchar(50), unique(domain));
|
||||
insert into domain (domain) select distinct substring(email, locate('@', email)+1) from emails;
|
||||
@r/3.23/ins000001.result select * from domain;
|
Loading…
Reference in a new issue