Welcome Guest, Not a member yet? Register   Sign In
text based primary keys
#1

[eluser]Bramme[/eluser]
Hey everybody

I wonder what the objections, if any, are against using text-based primary keys.

I'm building a little backend where I store my controllers in a db table 'controller_id', 'controller_name' and 'controller_fancy_title'.

In other tables I reference controller_id, but I might as well use controller_name (the filename of the controllers without .php), it's a unique key anyway.


Messages In This Thread
text based primary keys - by El Forum - 01-24-2011, 05:14 AM
text based primary keys - by El Forum - 01-24-2011, 06:47 AM
text based primary keys - by El Forum - 01-24-2011, 07:15 AM
text based primary keys - by El Forum - 01-24-2011, 07:29 AM
text based primary keys - by El Forum - 01-24-2011, 08:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB