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.