简体   繁体   中英

SAS SPDS table primary constraint unable to add

I am trying to add primary constraint on a SAS SPDS table.

Error i am receivig is - 1. ERROR: Engine SASSPDS does not support integrity constraint operations 2. ERROR: Requested function is not supported.

I am unable to proceed. Query i have used -

1.

PROC DATASETS LIB=libname;
       MODIFY tablename;
       IC CREATE PK_IDENTPRODUKT= primary key (IDENTPRODUKT);
QUIT;

**** and also tried 2.

proc sql;
alter table libname.tablename add constraint PK_IDENTPRODUKT primary key (IDENTPRODUKT);
quit;

Any suggestions.

SPDS was created with ACID compliance and does support INDEX creation. Please refer to the link below which will be very helpful
http://support.sas.com/documentation/cdl/en/spdsug/64018/HTML/default/viewer.htm#p1ssxe4zp7vvijn1wkn1pdjrk891.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM