November 8, 2004 at 2:29 am
November 9, 2004 at 8:22 am
Do you mean enforcing the name or automatically naming the FKs?
November 9, 2004 at 8:24 pm
November 9, 2004 at 11:50 pm
Finaly I got it working after some 12 hours of research on all the various combinations of macros.
%ForEachEntity{%ForEachChildRel(){%ForEachFKAtt() {
ALTER TABLE %Child
ADD CONSTRAINT FK_%EntityName(%Child)$%AttName_%EntityName(%Parent)$%ParentAtt(%AttName) FOREIGN KEY(%ChildFK()) REFERENCES %Parent(%ParentAtt(%ColName))}
%DBMSDelim
}}.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply