Welcome Guest, Not a member yet? Register   Sign In
Database naming conventions
#10

[eluser]garycocs[/eluser]
Hi Lads,

I've been messing with DBs for years now with no solid grounding in the processes. I have managed (for the most part) to develop my rules according to your above.

I'm just wondering about linked tables and the concepts behind it.

I am using the tablename_id as the "foreign key" but that was just the way it came about.

Is there a way to actually link the tables and what are the benefits of this.

For example

My query normally looks like this

select * from city where id = $cityid

select * from pub where city_id = $cityid

etc. etc.

Are there better more efficient ways of doing this??


Messages In This Thread
Database naming conventions - by El Forum - 05-13-2009, 09:34 AM
Database naming conventions - by El Forum - 05-13-2009, 09:45 AM
Database naming conventions - by El Forum - 05-13-2009, 11:19 AM
Database naming conventions - by El Forum - 05-13-2009, 11:31 AM
Database naming conventions - by El Forum - 05-13-2009, 12:01 PM
Database naming conventions - by El Forum - 05-13-2009, 12:02 PM
Database naming conventions - by El Forum - 05-13-2009, 12:10 PM
Database naming conventions - by El Forum - 05-13-2009, 12:16 PM
Database naming conventions - by El Forum - 05-13-2009, 12:17 PM
Database naming conventions - by El Forum - 05-13-2009, 05:05 PM
Database naming conventions - by El Forum - 05-13-2009, 06:58 PM
Database naming conventions - by El Forum - 05-14-2009, 12:56 AM
Database naming conventions - by El Forum - 05-14-2009, 01:17 AM
Database naming conventions - by El Forum - 05-14-2009, 02:02 AM
Database naming conventions - by El Forum - 05-14-2009, 02:16 AM
Database naming conventions - by El Forum - 05-14-2009, 02:20 AM
Database naming conventions - by El Forum - 05-14-2009, 10:39 AM
Database naming conventions - by El Forum - 05-14-2009, 01:17 PM
Database naming conventions - by El Forum - 05-14-2009, 10:01 PM
Database naming conventions - by El Forum - 05-14-2009, 11:10 PM
Database naming conventions - by El Forum - 05-14-2009, 11:20 PM
Database naming conventions - by El Forum - 05-15-2009, 02:12 AM
Database naming conventions - by El Forum - 05-15-2009, 05:26 AM
Database naming conventions - by El Forum - 05-15-2009, 05:39 AM
Database naming conventions - by El Forum - 05-15-2009, 05:43 AM
Database naming conventions - by El Forum - 05-15-2009, 05:50 AM
Database naming conventions - by El Forum - 05-15-2009, 05:50 AM
Database naming conventions - by El Forum - 05-15-2009, 05:57 AM
Database naming conventions - by El Forum - 05-15-2009, 06:15 AM
Database naming conventions - by El Forum - 05-15-2009, 06:20 AM
Database naming conventions - by El Forum - 05-15-2009, 06:22 AM
Database naming conventions - by El Forum - 05-15-2009, 06:53 AM
Database naming conventions - by El Forum - 05-15-2009, 06:56 AM
Database naming conventions - by El Forum - 05-15-2009, 08:36 AM
Database naming conventions - by El Forum - 05-15-2009, 08:42 AM
Database naming conventions - by El Forum - 05-15-2009, 08:46 AM
Database naming conventions - by El Forum - 05-15-2009, 08:49 AM
Database naming conventions - by El Forum - 05-15-2009, 09:02 AM
Database naming conventions - by El Forum - 05-15-2009, 09:23 AM
Database naming conventions - by El Forum - 05-15-2009, 10:00 AM
Database naming conventions - by El Forum - 05-15-2009, 12:10 PM
Database naming conventions - by El Forum - 05-15-2009, 01:10 PM
Database naming conventions - by El Forum - 05-15-2009, 01:36 PM
Database naming conventions - by El Forum - 05-20-2009, 05:03 PM
Database naming conventions - by El Forum - 09-28-2009, 05:46 PM
Database naming conventions - by El Forum - 09-30-2009, 05:30 PM
Database naming conventions - by El Forum - 11-29-2009, 07:17 AM
Database naming conventions - by El Forum - 11-29-2009, 08:29 AM
Database naming conventions - by El Forum - 11-29-2009, 12:46 PM
Database naming conventions - by El Forum - 07-12-2011, 01:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB