Column in where clause is ambiguous - What does that mean?

前端 未结 3 1557
一向
一向 2021-01-11 18:06

I\'ve come across this error in MySQL for the join clause but I\'m fairly new to the JOIN argument and I\'m not sure what this means. Can anyone help?

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-11 19:02

    I think you want:

    SELECT * FROM `venues` v, `venues_meta` m  where v.venue_id = m.id AND  m.id = '12'
    

    (but be sure it's v.venue_id you want and not v.id)

提交回复
热议问题