PG create table demo ( id int, name bytea ); Insert into demo (id,name)values(256,pg_read_binary_file('imgs/1.png')); slq server create table img( id varchar(50), name varbinary(max) ); INSERT INTO img (id,name) select '1' as id, * from OPENROWSET(BU
转自:http://www.cnblogs.com/futuredo/archive/2012/10/19/2727204.html Constructing and matching binaries Erlang/OTP R15B02 In R12B, the most natural way to write binary construction and matching is now significantly faster than in earlier releases. 在R12