0

I run few drop and alter statements in MySQL workbench. How to skip to next statement when current statement fails ?

I am looking for a GO keyword equivalent of MSSQL server in MySQL

user9920500
  • 606
  • 7
  • 21

3 Answers3

0

Use a semicolon (;). It will separate your statements.

Fahmi
  • 37,315
  • 5
  • 22
  • 31
0

Which MySQL Workbench version you are using?

I am posting 2 options here: In MySQL Workbench, just un-check the option under Query to "Stop Script Execution on Errors":

and in a newer versions use 'Toggle whether execution of SQL script should continue after failed statements'

For details you can be found here

-1

In MySQL Workbench, you can untick the option under Query to "Stop Script Execution on Errors": Following link may help you.

Continue SQL query even on errors in MySQL workbench

  • The link is to another answer on SO, not to an external website. I think that is fine to keep. – dubes Sep 20 '18 at 07:40