表A
{
ID 主键
.......
PRA 分区字段
}select * from A
where ID = ''
and PRA = '';
和
select * from A
where PRA = ''
and ID = '';
上边2种查询有效率上的区别吗,或者where条件没有主键,是其他字段呢?
{
ID 主键
.......
PRA 分区字段
}select * from A
where ID = ''
and PRA = '';
和
select * from A
where PRA = ''
and ID = '';
上边2种查询有效率上的区别吗,或者where条件没有主键,是其他字段呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货