 |
|
อยากถามหน่อยคับ พอดีผมนำ SQL Query มาจาก MS Access คับ จะเอามาใช้ใน Dream Weaver ยังไงคับ
ผมลองสร้าง Bindings เพื่อกำหนด Recordset ใหม่ แต่เมื่อนำ SQL ไปแล้ว มันขึ้นว่าเออเร่อคับ เป็นไปได้ไหมว่า Syntax ใช้ด้วยกันไม่ได้
แล้วมีวิธีการอย่างไรเพื่อแก้บ้างคับ
ประมานนี้คับ
Code (PHP)
SELECT aircrafts1.ac_reg, Last(PFR_failure_entry.PH) AS LastOfPH, if(([ATA] Like '7%' Or [ATA] Like '27%'),"SAFETY",if(([ATA] Like '24%' Or [ATA] Like '21%'),"CRITICAL","GENERAL")) AS System, PFR_failure_entry.message, PFR_failure_entry.message, PFR_failure_entry.PH
FROM aircrafts1 INNER JOIN (PFR_AC_FLT_detail INNER JOIN PFR_failure_entry ON PFR_AC_FLT_detail.PFR_fail_id = PFR_failure_entry.PFR_fail_id) ON aircrafts1.ac_id = PFR_failure_entry.ac_id
WHERE (((PFR_AC_FLT_detail.DATE) Between Now()-3 And Now()))
GROUP BY aircrafts1.ac_reg, PFR_failure_entry.ATA, PFR_failure_entry.message, PFR_failure_entry.message, PFR_failure_entry.PH
HAVING (((Last(PFR_failure_entry.PH))='03' Or (Last(PFR_failure_entry.PH))='04' Or (Last(PFR_failure_entry.PH))='05' Or (Last(PFR_failure_entry.PH))='06' Or (Last(PFR_failure_entry.PH))='07' Or (Last(PFR_failure_entry.PH))='08'));
ขอบคุณคับ
Tag : PHP, Ms Access
|
ประวัติการแก้ไข 2011-06-27 13:23:14
|
 |
 |
 |
 |
Date :
2011-06-27 12:54:38 |
By :
kudee |
View :
996 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |