[EMAIL PROTECTED] wrote:
Having a discussion with other developers and I found an index on a free table that was 
UNIQUE.  Perhaps it's left over from Fox 2.x days, but I'm trying to remember why I've 
got this memory that it was a "no-no" and to be avoided?  I'm trying to find a 
copy of HackFox but thought I'd post here in the meanwhile...

SET DELETED ON
Create a table, Names with field fname c(10)

INSERT INTO Names (fname) values("bob")
INSERT INTO Names (fname) values("bob")
INSERT INTO Names (fname) values("bob")
INSERT INTO Names (fname) values("alice")
INSERT INTO Names (fname) values("carol")
INSERT INTO Names (fname) values("ted")
INSERT INTO Names (fname) values("sue")
INSERT INTO Names (fname) values("sue")

BROWSE

INDEX on fname TO crap unique
SET INDEX TO crap
BROWSE

Delete the "bob" row

BROWSE
* oops! we have NO "bob!"

INDEX on fname TO crap unique && Let's rebuild the index - that will fix it, right?
BROWSE
* oops! we have NO "bob!"

Unique = BAD





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to