in reply to Key to use for files in db!

Hmmm, looking at your problem, are you sure you want to use the path in the primary key at all? What happens if you move a set of files? Multiple updates on primary keys can be a pain...

I'd probably go with a unique number, something that I don't need to worry about updating, and then leave the path in a separate column(s).

Replies are listed 'Best First'.
Re^2: Key to use for files in db!
by Ace128 (Hermit) on Jan 20, 2006 at 21:27 UTC
    Yea, I have it like that now. The unique number is for other tables to use as a foreign key.