Sql - goto statement

SoftwareGeek picture SoftwareGeek · Jun 15, 2010 · Viewed 31.4k times · Source

Is it good practice to use 'goto' statements in SQL queries?

Answer

Nate picture Nate · Jun 15, 2010

Depends on the SQL - some of the dialects don't provide a useful mechanism for flow control other than GOTO.

GOTO is generally bad form.