mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
bb66c80aeb
added support for quiet increased line buffer size client/mysqltest.c fixed memory leak added query logging to result file added error message logging to result file added enable_query_log/disable_query_log mysql-test/mysql-test-run.sh converted tests to use mysqlmanager Updated test results
13 lines
424 B
Text
13 lines
424 B
Text
use test;
|
|
drop table if exists t1,t2;
|
|
create table t1 (email varchar(50));
|
|
insert into t1 values ('sasha@mysql.com'),('monty@mysql.com'),
|
|
('foo@hotmail.com'),('foo@aol.com'),('bar@aol.com');
|
|
create table t2(id int not null auto_increment primary key,
|
|
t2 varchar(50), unique(t2));
|
|
insert into t2 (t2) select distinct substring(email, locate('@', email)+1) from t1;
|
|
select * from t2;
|
|
id t2
|
|
1 mysql.com
|
|
2 hotmail.com
|
|
3 aol.com
|