postgresql7.1
update bm_bookmarks set last_access_date = current_timestamp
where bookmark_id = :bookmark_id
or bookmark_id in
(
select bookmark_id from bm_bookmarks
where tree_sortkey like
(
select tree_sortkey || '%'
from bm_bookmarks where
bookmark_id = :bookmark_id
)
)