| Valid in: | DATA and PROC steps (when accessing DBMS data using |
| Default: | None |
| Requirement: | You must specify constraints within the CREATE TABLE statement parentheses. |
| Data source: | Teradata |
| See: | DBCREATE_TABLE_OPTS= data set option |
libname x teradata user=testuser pw=testpw;
/*
* Submits this SQL with table-level constraints.
*
* CREATE MULTISET TABLE "test"
* ("x" FLOAT NOT NULL ,
* "y" FLOAT NOT NULL ,
* CONSTRAINT test PRIMARY KEY(X,Y)
* );
*/
data x.test(DBCONSTRAINT='CONSTRAINT test PRIMARY KEY(X,Y)' DBNULL=(_ALL_=NO));
x=1;y=1;
run;