< Structure for the Schema Viewer/Builder   (Previous) Table of Contents (Next)   Script for Building Schema >

CREATE TABLE and KEYS

CREATE TABLE t (
  cf CHAR(10) DEFAULT 'n/a' NOT NULL,
  nf SMALLINT DEFAULT 0 NOT NULL,
  def REPLSQL-decimal(4,2) DEFAULT 1.23 NOT NULL,
  daf REPLSQL-date DEFAULT REPLSQL-dateliteral '2001-02-03' NOT NULL,
  tf REPLSQL-timestamp DEFAULT REPLSQL-timestampliteral '2002-03-04 10:20:30' NOT NULL,
  bf REPLSQL-boolean REPLSQL-null,
  PRIMARY KEY (cf),
  UNIQUE (daf)
);

CREATE INDEX foo_def_idx ON t (def);