How do you avoid column name conflicts?

前端 未结 8 1206
挽巷
挽巷 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:12

    Your approach is correct, but you can also provide an alias for your table:

    SELECT a.* FROM TableA A
    

    in here you can refer to TableA as simply A.

提交回复
热议问题