Navigation
- FAQ Home
- All categories
- About Webyog support and about this FAQ
- About the SQLyog program

- Connection issues

- Using the GUI
- Managing your MySQL Database Systems
- Database Schema Synchronization
- MySQL DATA synchronization
- SQL Scheduler and Reporting Tool
- Importing external data
- Backup/Restore
- SQLyog Job Agent (SJA)

- Working with Views, Stored Procedures and Triggers
- Character Set and Localization Issues
- MySQL bugs that affect SQLyog
- Questions on Open Source and Compiling
- Sitemap
Most popular FAQs 
- I get error 1130 "Host is not allowed to ... (169366 views)
- Error no. 2003: Can't connect... (86310 views)
- SQLyog Version History (63975 views)
- Error no. 1045: "Connection denied..." (61371 views)
- Error no. 1251: "Client does not support authentication..." (58326 views)
- Error No. 2005: Unknown MySQL server host... (50214 views)
- What is HTTP-tunneling? (42290 views)
- What Is SSH and SSH-tunneling? (38087 views)
- Can I use SQLyog with the WINE Windows emulator ... (34956 views)
- Why are Stored Procedures not created when I import ... (34273 views)
Latest FAQs 
- SQLyog Version History (2012-01-26 08:20)
- SQLyog is a client for the MySQL server - ... (2011-11-04 04:48)
- I get error 1130 "Host is not allowed to ... (2011-11-01 05:21)
- Problems on Ubuntu 11.x (2011-10-29 13:02)
- Problems creating a functional DSN on 64 bit Windows. ... (2011-09-15 14:34)
Sticky FAQs
Managing your MySQL Database Systems » Manipulating data.
I want to execute one SQL-statement only but all queries in editor-tab are executed.
The explanation probably is that the the editor tab from where you execute SQL is a "power type" editor tab. From SQLyog version 4.2 two types of editor-tabs are available.
1: The "general type" editor tab.
It functions in every respect as did the editor-pane of previous versions of SQLyog. Here you have the option to execute ONE query only, or ALL queries in the tab. Queries are divided by the ";"-character (semicolon). The option is available from main menu or by choosing the "single green arrow"-icon or the "double green arrow"-icon. You can also highlight a subset of what is written on the tab with your mouse and execute the highlighted part only. Functions keys F5 and F8 function like the "single green arrow"-icon: they execute "current query" - that is the one that the cursor is positioned in (or the subset of queries highlighted). Since SQLyog version 4.05 data in RESULT pane are editable in the same way as data in the DATA pane. But we have kept both functions keys working. However they now function totally identically.
From SQLyog version 5.0 the "general type" editor tab ALSO supports DELIMITER command, that lets you change the standard delimiter ";" (semicolon) to any other character or sequence of characters. What is in between a change-delimiter and a change-delimiter-back command is here considered ONE statement. Have a look at this SQL (and try it for yourself in the two editor-tab-types of SQLyog):
Drop procedure if exists abc;
Delimiter $$;
Create procedure abc()
Begin
Select '123';
Select '456';
Set @myvar = 'SQLyog supports MySQL version 5 objects';
End$$
Delimiter ;$$
Call abc();
Select @myvar;
This is by the editor considered as being four statements: 1) drop procedure ... 2) all what is between delimiter/delimiter-back 3) call ...4) select.
2: The "power type" editor tab.
This editor tab type was created in particular to facilitate common operations on MySQL version 5 objects. With this tab-type the only option is to execute ALL queries. The reason for that is that when "power type" editor tab is opened it starts with Delimiter $$; and ends with Delimiter ;$$ , so (following the explanation above) there is only one statement in the tab. But even if you add statements yourself outside the change-delimiter and a change-delimiter-back it still is the only option to execute everything on the tab. We kept it that way to avoid ambiguities.
Also read this to understand the difference in using DELIMITER-change from command-line and from SQLyog editor.
Tags: -
Related entries:
- SQLyog Version History
- What kind of ODBC databases are supported by SQLyog Import External Data Tool?
- Can I perform "incremental import" with the SQLyog Import External Data Tool?
- Error no. 1045: "Connection denied..."
- Plans for future versions of SQLyog
Last update: 2005-09-21 05:06
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ