MySQL Forums
Forum List  »  German

Re: Geschwindigkeit von temp. Tabellen
Posted by: Thomas Wiedmann
Date: May 29, 2012 07:07AM

Hallo Mark,

ein Index auf einer Tabellen bremst den INSERT, UPDATE, DELETE, da zusätzlich zur Datentabelle der Index verwaltet werden muss.
Das Erzeugen einer Temporären Tabelle und das Einfügen der Daten kann auch auf einmal erfolgen. Als direkt das Ergebnis der Abfrage als Grundlage für die Tabellendefinition verwenden.

CREATE TEMPORARY TABLE temp_datum AS
SELECT * FROM testdatum
ORDER BY datum;
Query OK, 3 rows affected (0.02 sec)
Records: 3  Duplicates: 0  Warnings: 0
Grüße
Thomas

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Geschwindigkeit von temp. Tabellen
892
May 29, 2012 07:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.