Recently, I received a question related to GO as
delimter to send a query. The user got some generated statements
from a third party tool that looked like this:
/* CreateTable VersionInfo */ CREATE TABLE VersionInfo (Version BIGINT NOT NULL) ENGINE = INNODB GO /* VersionMigration migrated */ /* VersionUniqueMigration migrating ========================================== */ /* CreateIndex VersionInfo (Version) */ CREATE UNIQUE INDEX UC_Version ON VersionInfo (Version ASC) GO
and so on…
To be honest I was lost ?! I never heard about that syntax and I was convinced that this was not valid (and you?)…
But in fact it is ! It’s the long command name for
\g and EGO is the one for
\G.
You can try help in the client (see the manual) and you will see it: …