C
|
Chris Whitehead 9/27/2024 |
I always use id as the auto increment field in my databases. It's not really the field name that is the issue, I think you're joining 2 tables which both have the field name of "id" and the "id" field is used in a condition, you just need to prefix the field name with the table name for example. where table1.id=x and table2.id=y |
M
|
MikeUk 9/27/2024 |
Using 'id' is almost standard practice, at least for me. As it makes it easier to remember the id fields for every table without have to look at the table. It could also be if you are using an INNER join on a table where one of the target rows contains NULL values that are part of the query. Mike |