我正在尝试返回exp_matrix_data.col_id_1
的所有数据select col_id_
(select col_id from exp_matrix_cols
left join exp_channel_fields on exp_matrix_cols.field_id = exp_channel_fields.field_id
where exp_channel_fields.field_name = 'transfer_agreement_field'
and exp_matrix_cols.col_name = 'school_name')
from exp_matrix_data
()中的select返回1,它检索要添加到col_id_的正确id,所以我可以这样做:
select col_id_1 from exp_matrix_data
这不起作用,但会让你知道我想要完成的任务。
答案 0 :(得分:1)