Home > database > The combination of the three fields group query
The combination of the three fields group query
Time:10-05
ABCDEFGHIJKLM is a field name, (A, B, C), (D, E, F), (G, H, I, J, K, L, M) take A three groups in the field name, query all the combinations
CodePudding user response:
Select * The from (select a from t Union all Select the from t b Union all Select the from c t) t1, (select the from d t Union all Select the from e t Union all Select the from f t) t2, The from (select g t Union all Select the from h t Union all Select the from I t Union all Select the from j t Union all Select the from k t Union all Select the from l t Union all Select m t) from t3,