select content_type from cr_items i, cr_revisions r
where r.item_id = i.item_id
and r.revision_id = :revision_id
$attribute_name
select $what from ${table_name}x where revision_id = :revision_id
and $extra_where
insert into $__last_table (
[join $__columns ", "]
) values (
[join $__values ", "]
)"
and $extra_where
order by
types.inherit_level desc
insert into $__last_table (
[join $__columns ", "]
) values (
[join $__values ", "]
)"
select object_type as content_type, table_name
from acs_object_types
where object_type = (select content_type from cr_items
where item_id = :item_id)
update cr_revisions
set mime_type = :mime_type
where revision_id = :revision_id
select
label, map.mime_type as value
from
cr_mime_types types, cr_content_mime_type_map map
where
types.mime_type = map.mime_type
and
map.content_type = :content_type
and
lower(types.mime_type) like ('text/%')
order by
label
select content_type from cr_items
where item_id = :parent_id
$param(value)
select
[join $columns ","]
from
cm_attribute_widget_param_ext x
where
object_type in ( [join $in_list ","] )
select
[join $columns ","]
from
cm_attribute_widget_param_ext
where
object_type = :content_type
and
attribute_name = :attribute_name
select
[join $columns ", "]
from
[get_type_info $content_type table_name]x
where
revision_id = :revision_id
select count(*) from cr_content_mime_type_map
where content_type = :content_type and mime_type like 'text/%'
select
$ref
from
acs_object_types
where
object_type = :object_type
select
[join $args ","]
from
acs_object_types
where
object_type = :object_type
select mime_type from cr_revisions where revision_id = :revision_id_src
update cr_revisions
set mime_type = :mime_type
where revision_id = :revision_id_dest
select count(1)
from cr_items
where name = :name
select count(1)
from cr_items
where name = :name
and parent_id = :parent_id