I’m about to create a database that has fields that will appear in a few different tables (as keys). For example, in my listing table I will have MLS_ID. This field will also appear in the listing_photos table. Should I prefix the field name to make it unique: listings_MLS_ID as an example?
Share
there is absolutely no point in doing that. you could ALWAYS prefix your fieldname with both database and table names, getting your unique identifier, keeping the name itself neat and concise.
will address an
idfield in themlstable which belongs tolistingsdatabase.this is going to be quite flexible: any time you need long unique identifier – you have it.
in all other cases you can use short name.