Revolving around the core of technology
Document ID: | 826 |
---|---|
Subject: | What is a query terminator |
Creation date: | 7/29/09 5:01 PM |
Last modified on: | 12/12/18 11:07 AM |
Most databases accept only one SQL query per statement. This means, you can submit a SQL query, wait for its response and then submit another one. In such cases, you can use a Query Terminator in WinSQL to break your scripts into multiple queries before submitting it to the back-end database. Query Terminator allow users to write a script like:
select * from customer
go
select * from orders
By default WinSQL uses the word "GO" as a Query Terminator. To change this value click Edit/Options on the main menu and change the value for Query Terminator String
Note that some databases like MS SQL Server and Sybase, allow multiple
queries per statement. For such database you are not required to use a
terminator.
Do you have a helpful tip related to this document that you'd like to share with other users?