เจอ 2 คำสั่งใน sql_trace
select dose_usage_unit_name from opi_dose_usage_unit where dose = 4 and usage_unit_code = ''
select * from drugusage where code='4 4' and name1='4' and name2='' and name3=''
ตามด้วยคำสั่ง insert นี้ครับ เลยได้ drugusage ใหม่
INSERT INTO drugusage (drugusage,code,name1,name2,name3,shortlist,idrlink,status,interval1,interval2,interval3,
interval4,interval5,interval6,iperday,dosageform,ename1,ename2,ename3,iperdose,drugusage_guid,divide_amount,common_name,
drugusage_active,opi_acpc_id,opi_usage_code,opi_dose,opi_unit_name,opi_frequency_code,opi_usage_unit_code,opi_time_code,
ipt_injection_sticker_count,machine_dose) VALUES ('0000503','4 4','4','','','4 4',NULL,'N',NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)