Hvis du angiver dine tabeller uden JOIN ON
klausul eller equalities/conditionins i WHERE
klausul får du det katesiske produkt, du leder efter.
SELECT table1.field1, table2.field2
FROM table1, table2
vil give dig, hvad du beder om. Viser det mere eksplicit...
SELECT * FROM table1;
+--------+
| field1 |
+--------+
| 1 |
| 2 |
+--------+
SELECT * FROM table2;
+--------+
| field2 |
+--------+
| 3 |
| 4 |
+--------+
SELECT table1.field1, table2.field2 FROM table1, table2;
+--------+--------+
| field1 | field2 |
+--------+--------+
| 1 | 3 |
| 2 | 3 |
| 1 | 4 |
| 2 | 4 |
+--------+--------+