我有这个问题。我使用了这个查询:
"SELECT formas.*,
SMS_SERVISI.IDTICKET,
SMS_SERVISI.MBYLLUR,
SMS_SERVISI.time_added,
servis_furnitor.id_servis,
servis_furnitor.furnitori,
servis_furnitor.kohezgjatja,
referenca.id_referenca,
referenca.shenime
FROM formas
LEFT JOIN servis_furnitor
ON formas.furnitori = servis_furnitor.id_servis
LEFT JOIN SMS_SERVISI
ON formas.ID = SMS_SERVISI.IDTICKET
AND formas.sektori_pergjegjes ='A'
LEFT JOIN referenca
ON formas.ID = referenca.id_referenca "
我的问题是我没有得到条件的一部分AND formas.sektori_pergjegjes ='A'
没有执行。也许我做了错位或其他事情,但我无法让它工作。
请看看这个。谢谢