Subject Re: [Firebird-Architect] Inserting binary data via a script
Author Fabricio Araujo
On Fri, 24 Jun 2005 09:03:37 +0200, Martijn Tonies wrote:

>> > CREATE TABLE mytable
>> > ( I Integer,
>> > B BLOB);
>> >
>> > COMMIT;
>> >
>> > INSERT INTO mytable (I, B) VALUES (1, 0xAE01498921);
>> >
>> > INSERT INTO mytable (I, B) VALUES (1, 0x000060000060000080);
>> >
>> > etc...
>> >
>> > This would insert a blob with each byte written as a hex value. The
>> > "0x......" would be the blob.
>> Is this request for server enhancement or isql enhancement? I guess you
>> the server to understand that, but just to be sure.
>The server should understand it, I don't use "isql" ;-)
>Anyway, this works in MS SQL, MySQL and NexusDB, probably others.
>It's a neat way to insert/update binary data from within a script.
>Obviously, the statement that's passing the data to the server could be

There isn't a statement limit? More interesting is the existance of a
( keyword, syntax, etc. pick your choice) that allows to pick the blob
from a file (obviously local to the SERVER - could be a DVD or CD
for example) in a insert statement. So we could insert thousand
blobs from a single script....