我在这里有这个查询:
$strSQL = "SELECT formas.*,
SMS_SERVISI.IDTICKET,
SMS_SERVISI.MBYLLUR,
SMS_SERVISI.time_added
FROM formas
LEFT JOIN SMS_SERVISI ON 'formas.id_f' = 'SMS_SERVISI.IDTICKET'
WHERE (SMS_SERVISI.IDTICKET !='' or SMS_SERVISI.IDTICKET is not null)
AND formas.sektori_pergjegjes ='K'
ORDER BY formas.id DESC;";
我的问题在 ON'formas.id_f' = 'SMS_SERVISI.IDTICKET'
它不起作用,这个值都是 varchar 类型,它会是 ie ON K3=K3 但它不起作用......也许它没有使用运算符 = 来查看两个字段是否相同。谢谢