MySQL Forums
Forum List  »  German

Transaktionsblock endet nicht
Posted by: Den Kuehn
Date: May 02, 2023 02:45AM

Hallo,

ich bin Anfänger und arbeite mich in mysql ein. Dazu habe ich ein Buch und hänge an folgender Stelle fest:

Ich möchte einen Befehlsblock mit "BEGIN;" und "COMMIT;" abgrenzen. Ich gebe den Code aus dem Buch wie folgt ein:

"begin;
INSERT INTO Kunde_intern VALUES (12,'Kost 1'),(13,'Kost2'),(14,'Kost 3'),(15,'Kost 5');
commit;"

Problem: Nach dem "commit;"-Befehl endet der Block nicht. Alles was ich danach eingebe, wird eingeklammert und bleibt somit Teil des obigen Codes. Was mache ich falsch?

Options: ReplyQuote


Subject
Views
Written By
Posted
Transaktionsblock endet nicht
147
May 02, 2023 02:45AM


Sorry, only registered users may post in this forum.

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.