XM
Size: a a a
XM
IZ
IZ
IZ
IZ
IZ
create table foo
(
id int not null auto_increment,
foo varchar(200) null,
PRIMARY KEY (id)
) engine innodb;
insert into foo (foo)
values(null), (''),(' '),(' '),
('b'),('ba'),('bar'),(' bar'),('bar '),(' bar ');
select id, foo, length(foo)
from foo
where foo = ' '
order by id;
select id, foo, length(foo)
from foo
where foo = ' ' and length(foo) = 1
order by id;
S
create table foo
(
id int not null auto_increment,
foo varchar(200) null,
PRIMARY KEY (id)
) engine innodb;
insert into foo (foo)
values(null), (''),(' '),(' '),
('b'),('ba'),('bar'),(' bar'),('bar '),(' bar ');
select id, foo, length(foo)
from foo
where foo = ' '
order by id;
select id, foo, length(foo)
from foo
where foo = ' ' and length(foo) = 1
order by id;
A
IZ
IZ