insert into
pm_process_task
(process_task_id,
process_id,
one_line,
description,
estimated_hours_work,
estimated_hours_work_min,
estimated_hours_work_max,
ordering)
values
(:task_id,
:process_id,
:one_line,
:desc,
:work,
:work_min,
:work_max,
:order)
update pm_process_task set
one_line = :one_line,
description = :desc,
estimated_hours_work = :work,
estimated_hours_work_min = :work_min,
estimated_hours_work_max = :work_max,
ordering = :order
where
process_task_id = :task_id
select count(*) from pm_process_task where
process_task_id in ([join $process_task_id ","])