BLOB(???????????????????????????????????????)????????????2,147,483,647??????????????????????????????????????????????????????????????????????????????????????????BLOB????????????????????????????????????????????????????????????????????????BLOB?????????????????????????????????????????????
BLOB???????????????????????????????????????????????????????????????1024???1024*1024???1024*1024*1024????????????K???M???G??????????????????????????????????????????????????????????????????????????????
{ BLOB | BINARY LARGE OBJECT } [ ( length [{K |M |G }] ) ]
?????????BLOB????????????2GB(2,147,483,647)?????????
java.sql.Blob
BLOB
????????????????????????????????????BLOB???????????????????????????????????????java.sql.ResultSet???getBlob??????????????????????????????
java.sql.Blob???????????????????????????java.sql.Clob???????????????????????????????????????????????????????????????
create table pictures(name varchar(32) not null primary key, pic blob(16M));
--?????????????????????????????????????????????
select length(pic), name from pictures where name like '%logo%';
--?????????????????????????????????(blob?????????)
select a.name as double_one, b.name as double_two
from pictures as a, pictures as b
where a.name < b.name
and a.pic = b.pic
order by 1,2;