1 Aug 2010 03:36
Re: v11 composite keys
> Hi there, > >> How do you query using a composite key in v11 > > You can create a Composite index in 4D v11 SQL, if that's what you mean. The query must use the fields in the same order as what was defined for the index. You can verify whether or not it's working by checking the query path. > >> How do you set unique attribute for key > > Unique is a field attribute. Composite indexes are...well...indexes. So you can't enforce uniqueness based on the index. > > I think maybe you're looking at Composite indexes and thinking they are composite fields? They are not. > And in V12 ? in DB2 and SQL you can set the primary key as unique even if the primary key is composite So do you mean it's impossible to set the unique attribute on a composite primary key, but only on a field (so not a combination of fields) ?********************************************************************** Join 4D experts from around the world this October: http://4d.com/company/events/summit2010.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@...(Continue reading)
RSS Feed