Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I query info from a special table structure in MySQL?
    primarykey
    data
    text
    <p>I got a problem with a query or a table in MySQL and i spent so much time to solve it, but i still have no answer. So i need your help.</p> <p>The format of the table is something like that</p> <pre><code>------------------------------------------------------------- col1 | col2 | col3 | col4 | col5 | col6 | ------------------------------------------------------------- a | b | c | null | null | null | ------------------------------------------------------------- null | null | null | 1 | 2 | 3 | ------------------------------------------------------------- null | null | null | 4 | 5 | 6 | ------------------------------------------------------------- null | null | null | 7 | 8 | 9 | ------------------------------------------------------------- d | e | f | null | null | null | ------------------------------------------------------------- null | null | null | 10 | 11 | 12 | ------------------------------------------------------------- null | null | null | 13 | 14 | 15 | ------------------------------------------------------------- null | null | null | 16 | 17 | 18 | ------------------------------------------------------------- ... </code></pre> <p>The table has a structure like that because it loads data from a big-size csv file (about 300k lines). All i want is write a mysql statement that query records in the fastest time that it can and its result is in format:</p> <p>(a,b,c,1,2,3),(a,b,c,4,5,6),(a,b,c,7,8,9),(d,e,f,10,11,12),(d,e,f,13,14,15),(d,e,f,16,17,18) ...</p> <p>But ... how? Please help me to solve the problem. Thks in advance</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload