2006-06-14 20:16:32 +02:00
|
|
|
DROP TABLE IF EXISTS t1;
|
|
|
|
create table t1(a int) engine=myisam;
|
2007-12-12 18:19:24 +01:00
|
|
|
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=ndb;
|
2007-12-12 18:19:24 +01:00
|
|
|
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
select count(*) from t1;
|
|
|
|
count(*)
|
|
|
|
10000
|
|
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=myisam;
|
|
|
|
insert into t1 values (1), (2), (2), (3);
|
2007-12-12 18:19:24 +01:00
|
|
|
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
drop table t1;
|
|
|
|
create table t1(a int primary key) engine=ndb;
|
2007-12-12 18:19:24 +01:00
|
|
|
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
select * from t1 order by a;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=myisam;
|
|
|
|
insert into t1 values (1), (1), (2), (3);
|
2007-12-12 18:19:24 +01:00
|
|
|
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
drop table t1;
|
|
|
|
create table t1(a int primary key) engine=ndb;
|
2007-12-12 18:19:24 +01:00
|
|
|
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
select * from t1 order by a;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=myisam;
|
|
|
|
insert into t1 values (1), (2), (3), (3);
|
2007-12-12 18:19:24 +01:00
|
|
|
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
drop table t1;
|
|
|
|
create table t1(a int primary key) engine=ndb;
|
2007-12-12 18:19:24 +01:00
|
|
|
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
|
2006-06-14 20:16:32 +02:00
|
|
|
select * from t1 order by a;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
drop table t1;
|