How do you avoid column name conflicts?

前端 未结 8 1132
挽巷
挽巷 2021-01-05 12:35

I was recently assigned a task of creating an auction system. During my work, I met numerous occasions where my SQL queries that contained joins failed to execute due to amb

8条回答
  •  时光说笑
    2021-01-05 13:00

    The golden rule of thumb is that if you are ever using more than one table at all, alias the tables, and explicitly alias all columns.

    This consistency will get you deep into the force, young padawan.

提交回复
热议问题