我正在执行这两个查询。
1.
select widget_uid,param_value as campaign_name
from widget_config_value
where widget_uid in (select widget_uid
from widget_config_value
where param_name="active"
and param_value="1"
and widget_uid in (select widget_uid
from partner_widget
where partner_uid=4)
)
and param_name="widgetCampaignName";
2.
select widget_uid,param_value as campaign_type
from widget_config_value
where widget_uid in (select widget_uid
from widget_config_value
where param_name="active"
and param_value="1"
and widget_uid in (select widget_uid
from partner_widget
where partner_uid=4)
)
and param_name="widgetType";
我怎样才能在 widget_uid 上加入这个?所以,我可以获得常见widget_uid的结果??
或者有什么办法可以改善上述查询?