Subject | Re: [Firebird-Architect] Inserting binary data via a script |
---|---|
Author | Martijn Tonies |
Post date | 2005-06-24T07:03:37Z |
> > CREATE TABLE mytablewant
> > ( 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
largish...
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com