Guest_imported
New member
- Jan 1, 1970
- 0
Dear all plx help,
I declared a column with default values, for example:
=======================================
CREATE DOMAIN KEYWORDFLAG AS CHAR(1)
default 'F';
/* Table: TOPIC, Owner: SYSDBA */
CREATE TABLE a
(
X TIMESTAMP,
xx TIMESTAMP,
xxx TIMESTAMP,
xxxx INTEGER NOT NULL,
xxxxx SMALLINT,
xxxxxx SMALLINT,
xxxxxxx VARCHAR(255),
xxxxxxxx VARCHAR(255),
field9 KEYWORDFLAG,
PRIMARY KEY (TOPICID)
);
====================================
I initially think that by declaring a column to hold default, the field9 above should be able to auto-fill by the specified default values.
But it can't, can anyone tell me how to make interbase field auto-filled(say if I don't input 'T' or 'F', field9 will fill itself with default 'F').
Thank you.
judy Chan
I declared a column with default values, for example:
=======================================
CREATE DOMAIN KEYWORDFLAG AS CHAR(1)
default 'F';
/* Table: TOPIC, Owner: SYSDBA */
CREATE TABLE a
(
X TIMESTAMP,
xx TIMESTAMP,
xxx TIMESTAMP,
xxxx INTEGER NOT NULL,
xxxxx SMALLINT,
xxxxxx SMALLINT,
xxxxxxx VARCHAR(255),
xxxxxxxx VARCHAR(255),
field9 KEYWORDFLAG,
PRIMARY KEY (TOPICID)
);
====================================
I initially think that by declaring a column to hold default, the field9 above should be able to auto-fill by the specified default values.
But it can't, can anyone tell me how to make interbase field auto-filled(say if I don't input 'T' or 'F', field9 will fill itself with default 'F').
Thank you.
judy Chan