 |
ช่วยอธิบาย บันทัดนี้ให้หน่อยน่ะค่ะ $func_h="select c.emp_id,d.fname,d.lname from db_iqa.tab_emp c , tab_center.tab_emp d" ." where c.emp_id=d.emp_id and (c.emp_id not in ($manager_auditor)) and c.level not in (4) order by c.emp_id"; |
|
 |
|
|
 |
 |
|
ไม่เข้าใจตรงบันทัด c.level not in (4) ค่ะ
|
 |
 |
 |
 |
Date :
2012-06-27 15:34:31 |
By :
MySeason22 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
c.level not in (4)
(...) เราสามารถใส่ค่าหลายๆค่าได้ครับ เช่น (4,5,6,7,8)
c.level not in หมายถึง c.level ที่ไม่มี หรือไม่ตรงกับทุกตัวที่อยู่ใน (?,?,?)
c.level not in (4) จึงหมายถึง c.level ที่ไม่เท่ากับ หรือไม่ตรงกับ 4 ครับ
|
 |
 |
 |
 |
Date :
2012-06-27 15:46:36 |
By :
mangkunzo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณค่ะ
|
 |
 |
 |
 |
Date :
2012-07-02 16:22:50 |
By :
MySeason22 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|