SELECT n.project_name,v.module_name,v.topic_id,i.project_ip,n.project_id,i.project_ip FROM (phpbb_m_latest_version v) LEFT JOIN phpbb_m_latest_name n ON (n.project_id = v.project_id) LEFT JOIN phpbb_m_latest_ip_server i ON (i.project_id = v.project_id) WHERE n.project_name = 'aa'
AND IF (i.project_ip = '*',LIKE'% ::1 %', LIKE '%::1%')
เเต่ถ้าฟิลด์นั้นไม่ใช้ ให้ WHERE ด้วยคำสั่ง WHERE i.project_ip LIKE ::1
IF(p.TELEPHONE !='', p.RL_PHONE, p.TELEPHONE) AS TELEPHONE,
ไม่มีความคิดเห็น:
แสดงความคิดเห็น