select @rownum:=@rownum+1 as seq from (select @rownum:=-1) seed, SomTable t1,SomeTable limit
SomeTable can be any table that has enough rows so that the cross product is greater than the upper bound.
select @rownum:=@rownum+1 as seq from (select @rownum:=-1) seed, SomTable t1,SomeTable limit
No comments:
Post a Comment