PHP Classes
Icontem

File: buglogtable.sql


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Fasani  >  Interbase with error logging  >  buglogtable.sql  
File: buglogtable.sql
Role: Auxiliary data
Content type: text/plain
Description: Sql file for the creation of the BUGLOG table.
Class: Interbase with error logging
Interbase access wrapper. Conn/Query errors logged
 

Contents

Class file image Download
/* Table: BUGLOG */

CREATE TABLE BUGLOG (
    BUGIDE INTEGER NOT NULL,
    BUGURI VARCHAR (60) CHARACTER SET NONE COLLATE NONE,
    BUGMSG VARCHAR (300) CHARACTER SET NONE COLLATE NONE,
    BUGQRY VARCHAR (500) CHARACTER SET NONE COLLATE NONE,
    BUGSTA TIMESTAMP);



/* Primary keys definition */

ALTER TABLE BUGLOG ADD CONSTRAINT PK_BUGLOG PRIMARY KEY (BUGIDE);

SET TERM ^ ;

/* Let's create a Generator variable to store the autoincremental IDE */
CREATE GENERATOR "BUGLOG_BUGIDE_GEN";

/* Triggers definition */


/* Trigger: AI_BUGLOG_BUGIDE :AUTO_INCREMENT IDE */
CREATE TRIGGER AI_BUGLOG_BUGIDE FOR BUGLOG ACTIVE
BEFORE INSERT POSITION 0
AS
BEGIN
  IF (NEW.BUGIDE IS NULL) THEN
      NEW.BUGIDE = GEN_ID(BUGLOG_BUGIDE_GEN, 1);
END
^


SET TERM ; ^

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products