我有这个选择声明:
SELECT a.nameid, b.nameid, c.nameid, d.nameid
FROM myTable AS a, myTable AS b, myTable AS c, myTable AS d
LIMIT 10,20;
但是这个代码为每个新列提取了相同的确切限制数范围,我希望每个列具有不同的LIMIT范围。例如,我希望myTable AS a的LIMIT为1,3,myTable的d为LIMIT范围为3,5;
我有什么:
nameid
-------
joe1
joe2
joe3
joe4
joe5
joe6
joe7
joe8....joe 30
RESULTS SHOULD BE:
result a result b result c
-------- -------- ----------
joe1 joe4 joe7
joe2 joe5 joe8
joe3 joe6 joe9