359
359
create table t1 (a text, unique (a(2100)));
360
ERROR 42000: Specified key was too long; max key length is 1020 bytes
360
ERROR 42000: Specified key was too long; max key length is 2044 bytes
361
361
create table t1 (a text, key (a(2100)));
363
Warning 1071 Specified key was too long; max key length is 1020 bytes
363
Warning 1071 Specified key was too long; max key length is 2044 bytes
364
364
show create table t1;
365
365
Table Create Table
366
366
t1 CREATE TABLE `t1` (
369
369
) ENGINE=PBXT DEFAULT CHARSET=latin1
371
371
CREATE TABLE t1 (
507
507
Warning 1101 BLOB/TEXT column 'imagem' can't have a default value
508
508
insert into t1 (id) values (1);
510
charset(load_file('../../std_data/words.dat')),
511
collation(load_file('../../std_data/words.dat')),
512
coercibility(load_file('../../std_data/words.dat'));
513
charset(load_file('../../std_data/words.dat')) collation(load_file('../../std_data/words.dat')) coercibility(load_file('../../std_data/words.dat'))
510
charset(load_file('../std_data_ln/words.dat')),
511
collation(load_file('../std_data_ln/words.dat')),
512
coercibility(load_file('../std_data_ln/words.dat'));
513
charset(load_file('../std_data_ln/words.dat')) collation(load_file('../std_data_ln/words.dat')) coercibility(load_file('../std_data_ln/words.dat'))
515
explain extended select
516
charset(load_file('../../std_data/words.dat')),
517
collation(load_file('../../std_data/words.dat')),
518
coercibility(load_file('../../std_data/words.dat'));
515
explain extended select
516
charset(load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat')),
517
collation(load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat')),
518
coercibility(load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat'));
519
519
id select_type table type possible_keys key key_len ref rows filtered Extra
520
520
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
522
Note 1003 select charset(load_file(_latin1'../../std_data/words.dat')) AS `charset(load_file('../../std_data/words.dat'))`,collation(load_file(_latin1'../../std_data/words.dat')) AS `collation(load_file('../../std_data/words.dat'))`,coercibility(load_file(_latin1'../../std_data/words.dat')) AS `coercibility(load_file('../../std_data/words.dat'))`
523
update t1 set imagem=load_file('../../std_data/words.dat') where id=1;
522
Note 1003 select charset(load_file(_latin1'MYSQLTEST_VARDIR/std_data_ln/words.dat')) AS `charset(load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat'))`,collation(load_file(_latin1'MYSQLTEST_VARDIR/std_data_ln/words.dat')) AS `collation(load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat'))`,coercibility(load_file(_latin1'MYSQLTEST_VARDIR/std_data_ln/words.dat')) AS `coercibility(load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat'))`
523
update t1 set imagem=load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat') where id=1;
524
524
select if(imagem is null, "ERROR", "OK"),length(imagem) from t1 where id = 1;
525
525
if(imagem is null, "ERROR", "OK") length(imagem)
528
create table t1 select load_file('../../std_data/words.dat') l;
528
create table t1 select load_file('MYSQLTEST_VARDIR/std_data_ln/words.dat') l;
529
529
show full fields from t1;
530
530
Field Type Collation Null Key Default Extra Privileges Comment
531
531
l longblob NULL YES NULL #
613
613
insert into t1 (txt) values ('Chevy'), ('Chevy '), (NULL);
614
614
select * from t1 where txt='Chevy' or txt is NULL;
619
619
explain select * from t1 where txt='Chevy' or txt is NULL;
620
620
id select_type table type possible_keys key key_len ref rows Extra
621
1 SIMPLE t1 range txt_index txt_index 23 NULL 2 Using where
621
1 SIMPLE t1 ref_or_null txt_index txt_index 23 const 2 Using where
622
622
select * from t1 where txt='Chevy ';