2017-11-06 6 views
1

Wie kann ich nicht die richtige Syntax für eine einfache versuchen/fangen? Muss ich noch mehr tun?Try/catch Syntax

Alles, was ich bekommen ist Fehler 1064 ...

BEGIN TRY 
SELECT * FROM NonExistentTable; 
END TRY 

BEGIN CATCH 
SELECT * FROM ExistingTable; 
END CATCH; 
GO 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TRY 
SELECT * FROM NonExistentTable' at line 1 

Dank

Antwort

Verwandte Themen