mysql naming convention
Posted
by Lizard
on Stack Overflow
See other posts from Stack Overflow
or by Lizard
Published on 2010-04-12T22:50:03Z
Indexed on
2010/04/12
22:52 UTC
Read the original article
Hit count: 504
I have generally always used some sort of Hungarian Notation
for my field names in my tables e.g.
#Table Users
u_id, u_name, u_email etc...
#Posts
p_id, p_u_id, p_title, p_content etc...
But I have recently been told that this isn't best practice. Is there a more standard way of doing this? I haven't really liked just using the field id
as this is then requirs you to select table
.field
for fields names that appear in mutliple tables when using joins etc.
Your thoughts on what is best practice would be appreciated.
© Stack Overflow or respective owner