执行下面语句时,提示cannot recognize input near '(' 'select' 'max' in expression specification。
select *
from T1 as tt1
join
(select round(rand() * ((select max(numid) from T1)-(select min(numid) from T1)) + (select min(numid) from T1)) as id) as tt2
where tt1.numid >= tt2.id
order by tt1.numid limit 100
其中,numid是通过row number()生成的序号列。