|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Doesn't like this code... not sure why?
This keeps generating an error and I'm not sure why? Also, could someone provide me with a way to do this while developing the table. i.e. create a cluster of foreign keys. Thanks
CODE STARTS: ALTER TABLE DEPT_LOC_GRP_EXTR ADD CONSTRAINT DEPT_LOC_GRP_FK1 FOREIGN KEY (DEPT_I, OPER_CO_C, DIV_I) REFERENCES LGL_DEPT_EXTR(DEPT_I, OPER_CO_C, DIV_I) :CODE ENDS |
|
#2
|
|||
|
|||
|
Quote:
What error? What do you mean with a cluster of foreign keys? Code:
create table t(c1 int,c2 int, foreign key(c1,c2)references q) |
|
#3
|
|||
|
|||
|
that was the perfect solution. thanks
|
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Doesn't like this code... not sure why? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|