查詢數據我有三個表:約束,車站和時間PHP - 似乎無法從表
界有2列:boundID和boundName
站有3列:的stationID工作站名稱boundID
時間有4列:timeID departureTime tramID stationID
我正在使用此查詢來獲取boundName,但似乎無法獲取數據。任何幫助,將不勝感激!
$query ="SELECT b.boundName, s.stationName, t.departureTime
from Station s, Time t, Bound b
where s.stationID = t.stationID
AND t.departureTime !=''
AND s.boundID = b.boundID
AND b.boundName";
}
感謝
'和b.boundName'這不是條件; – itzmukeshy7