-3
Wie kann ich meine wählen optimieren:optimize a Wählen
SELECT Id, FirstName, LastName, Country
FROM Customer
WHERE (Country ="x" and Id ="y")
or (Country ="x1" and Id ="y1")
or (Country ="x2" and Id ="y2")
or (Country ="x3" and Id ="y3")
or (Country ="x4" and Id ="y4")
or (Country ="x5" and Id ="y5")
Wahrscheinlich ist der erste Schritt herauszufinden, welche DBMS Sie verwenden. Sie haben sowohl "mysql" als auch "oracle" markiert. – Siyual
Dann fügen Sie zu Ihrer Frage Ihre Tabelle create-Anweisung und auch ein Ausgabeergebnis eines Ausführungsplans hinzu. –
Jeder Index definiert? – jarlh