.

อยากรู้ว่าใคร ลบผู้ป่วย

อยากรู้ว่าใคร ลบผู้ป่วย
SELECT * FROM ksklog WHERE tablename='Patient' AND modifytype = 'Remove' AND detail = 'HN'
เปลี่ยน HN เป็นหมายเลข HN ของผู้ป่วยครับ

อยากรู้ไหม ว่าใครลบ visit ที่มารับบริการบ้าง.....
select * from ksklog where detail like '% Cause :%' 
หรือ เอาเป็นช่วงเวลา
select * from ksklog where detail like '% Cause :%' 
and logtime between '2009-12-28 00:00:00' and '2009-12-28 23:59:59'

เรื่องที่เกี่ยวข้อง

No comments yet
^