Why should I use GO when writing sql for sybase? In most of the existing sql my project has, there are no GOs but when DDL is generated for table creation, as an example, the application inserts many GO statements.
Thanks to the answers, I understand that GO is similar to ; in other databases, as people have helpfully pointed out it is a Delimiter.
An added question then, is GO in sybase exactly equivalent to typing ; in Oracle?
It’s a batch separator.
GOis used to tell the engine to process everything after the wordGOas a new command in a batch.Without
GO, the optimizer would throw an error at the secondCREATEstatement