12.07.2015 Views

Ingres 2006 Command Reference Guide - Actian

Ingres 2006 Command Reference Guide - Actian

Ingres 2006 Command Reference Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

lobstor <strong>Command</strong>—Copy a BLOB from a File to a DatabaseExample: Create Audit Trail for a Table and Copy Output to a New TableThis command creates an audit trail for the employee table in the empdatadatabase, and then uses SQL commands to create a table and copy the defaultauditdb output files into it.auditdb empdata –table=employee –file sql empdatacreate table empaudit(date date not null with default,usrname char(32) not null with default,operation char(8) not null with default,tranid1 integer not null with default,tranid2 integer not null with default,table_id1 integer not null with default,table_id2 integer not null with default,eno I2,ename char(10),age I1,job I2,salary money,dept I2);Windows:copy table empaudit () from 'C:\WINNT\Profiles\user1\employee.trl'UNIX:copy table empaudit () from "/usr/directory/employee.trl";VMS:copy table empaudit () from "dev:[directory]employee.trl";blobstor <strong>Command</strong>—Copy a BLOB from a File to a DatabaseThe blobstor command loads a binary large object (BLOB) into a column of an<strong>Ingres</strong> database, or stores the file name of the BLOB into a specified varchar(256) column. The BLOB is stored into a long byte column.The blobstor command has the following format:blobstor [-ttable –bblobcol –nnamecol] [-u –wwhereclause] [vnode::]dbnameimageFilevnodeSpecifies the virtual node where the database resides.dbnameSpecifies the database name.36 <strong>Command</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!