----- Original Message -----
From: Alan McDonald
To: IBObjects@yahoogroups.com
Sent: Saturday, February 28, 2004 11:03 AM
Subject: RE: [IBO] TIB_DataPump
> There is:
> CREATE TABLE SOCI (
> MYCODE D_GUID /* VARCHAR(36) NOT NULL */,
> COGNOME COGNOME /* VARCHAR(30) */,
> NOME NOME /* VARCHAR(20) */,
> TITOLO TITOLO /* VARCHAR(8) */,
> INDIRIZZO INDIRIZZO /* VARCHAR(50) */,
can I see the full definition? including contraints and indexes?
There :
/******************************************************************************/
/**** Generated by IBExpert 28/02/04 11.22.18 ****/
/******************************************************************************/
ALTER TABLE SOCI ADD CONSTRAINT PK_SOCI PRIMARY KEY (MYCODE);
/******************************************************************************/
/**** Indices ****/
/******************************************************************************/
CREATE INDEX XCOGNOMESOCI ON SOCI (COGNOME, NOME);
/* Trigger: SOCI_BIU0 */
CREATE TRIGGER SOCI_BIU0 FOR SOCI
ACTIVE BEFORE INSERT OR UPDATE POSITION 0
AS
begin
new.eta = coalesce( ( current_date - new.data_nascita ) / 365, 0 );
end
^
SET TERM ; ^
That's all.
Andy thanks.
Ciao
Arnaldo
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________ http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !