postgresql:
建立table:
CREATE TABLE PUB_CARRIER
(
PUBLIC_CARRIER_ID NUMERIC NOT NULL,
CREATE_DATE DATE DEFAULT 'now',
TRANSACTION_ID VARCHAR(18) NOT NULL ,
CARRIER_ID1 VARCHAR(64),
SEQ NUMERIC(10,0) DEFAULT 0 ,
EMAIL VARCHAR(100),
PRINTMARK NUMERIC(2,0) DEFAULT 0 ,
PRINT_DATATIME DATE,
PUBLIC_CARRIER_STATUS VARCHAR(10) DEFAULT '00' ,
EMAIL_INV VARCHAR(1),
EMAIL_NOWIN VARCHAR(1)
)
建立primary key:
ALTER TABLE AWARD_INVOICE ADD PRIMARY KEY (SERIAL_NUMBER);
沒有留言:
張貼留言