UPDATE aps_resource SET resource_no= NULL, workstation_id=0 WHERE aps_resource."id" = #{id}