hive sql 随机抽样

create table daizk.IOS_matrix_sex as
select *
from zhujx.1029_IOS_features_replce_null
where sex = 'M'
union all
select *
from zhujx.1029_IOS_features_replce_null
where sex = 'F'
order by rand()
limit 781318

男女各抽了781318条

上一篇:POJ 2417 Discrete Logging BSGS


下一篇:margin相关基本知识