我需要从tt_content中选择*,其中colPos=4和uid位于sys_category_record_mm (类别Uid_local=14)中。
我尝试了这个,但是结果为空。
styles.content.getTop {
table= tt_content
select{
selectFields = *
join = sys_category_record_mm ON (sys_category_record_mm.uid_foreign=tt_content.uid)
where = tt_content.colPos=4
andWhere = sys_category_record_mm.uid_local=14
}
}你能帮帮我吗?
发布于 2014-02-04 08:08:17
萨克斯·洛伦兹
问题是缺少了orderBy
styles.content.getTop {
table = tt_content
select{
orderBy = tt_content.sorting
selectFields = *
join = sys_category_record_mm ON sys_category_record_mm.uid_foreign=tt_content.uid
where = tt_content.colPos=4
andWhere = sys_category_record_mm.uid_local=14
}
}我认为默认情况下是“排序”,但是如果两个表连接在一起,排序是不明确的,所以我必须添加tt_content.sorting
:-)
https://stackoverflow.com/questions/20470336
复制相似问题