1. 程式人生 > >mysql Column 'dbvalue' in where clause is ambiguous解決方案

mysql Column 'dbvalue' in where clause is ambiguous解決方案

在一次使用mysql資料庫查詢的時候出現錯誤提示 Column 'languageid' in where clause is ambiguous,這個錯誤in where clause is ambiguous多半是因為多表查詢的時候幾個表中同時出現了某個相同的列名,而在查詢條件WHERE後面又沒有指定是那個表,而引起的  又或者是查詢結果裡面有兩個相同的列名,而沒有指定是哪個表 使用的時候可以這樣,mysql查詢前面加表名可避免出現錯誤Column 'languageid' in where clause is ambiguous SELECT tablea.id aid table.id bid WHERE tablea.id = tableb.id