有了虚拟列,在select子句和where子句中,查询虚拟列与普通的列没有不同,查询用法上可以基本不需要变化。...select entity_id, `value`, attribute_id from user_int where attribute_id = 2 and entity_id in (1,3,4,6,10,13,17,18...and entity_id in (1,3,4,6,10,13,17,18) union all select entity_id, `value`, attribute_id from user_datetime...where attribute_id = 10 and entity_id in (1,3,4,6,10,13,17,18) union all select entity_id, `value...allselect entity_id, `value`, attribute_id from user_datetime where attribute_id = 10 and entity_id