Run SQL
ServerBasic SQL (SQL Console). Ctrl+Enter runs everything, Ctrl+Shift+Enter the statement at the cursor.
Run SQL, build queries and views without writing it, save and check it.
ServerBasic SQL (SQL Console). Ctrl+Enter runs everything, Ctrl+Shift+Enter the statement at the cursor.
Database or TableSQL Builder: columns, joins, conditions, grouping, sorting — the SQL appears as you click.
SQL Builder: name the query next to Save; your saved ones are in Saved queries, the closed section at the top (click its header). Basic SQL: Saved queries is the section at the top, closed with the number of queries in its header — click the header or Saved in the toolbar (pressed while it is open); to save, type a name next to Save in the Query header.
With SQL Wizard accounts a saved query is kept for you on that database server, so it is there on every computer you sign in from; tick Share (plans with Shared saved queries) and every member of your organization sees it in Saved queries — shared ones show who shared them. You change and delete your own; owners and admins also change and delete shared ones; read-only members save their own but don't share.
Queries the SQL Builder kept in this browser before show a note — Keep them in your account moves them. Signed in with a MySQL account, saved queries stay in this browser.
ServerBasic SQLCheck looks for errors without running anything: nothing changes, whatever the SQL says. Errors and risky statements are listed with their line; click one to see it in the editor.
Tables and columns are looked up in SELECT, INSERT, UPDATE, DELETE and CREATE VIEW. In other statements (CREATE TABLE, ALTER, a procedure’s body) only the syntax is checked, and the rest shows when they run.
Check is advice: Run always stays available. The view, procedure, function, event and trigger editors have Check under their SQL too: it saves nothing.
The SQL Builder has Check next to Run and Explain. DatabaseImport and ServerImport have Check the SQL under what the file contains: a file of any length is checked in parts (the first rows of each table — a dump repeats them —, not statements over 1 MB, at most 2,000 statements); a table the file makes earlier is a note, not an error, and ServerImport checks each database in its target (one the file makes is looked up only when it runs).
Statements the import skips (CREATE DATABASE, USE) are not checked. Nothing is run, and the import does not wait for it.
LIKE only matches the whole text unless you add %: LIKE 'Mar' finds only Mar, LIKE 'Mar%' finds Marko and Marija. In a Guided condition choose starts with, contains or ends with, and the % is added for you.
DatabaseViewsCreate View, or a view's Definition tab: switch to Guided. Choose tables, columns, filters, groups, sort and limit, and the SQL is written for you.
Preview 10 rows shows the result. Basic stays for writing SQL yourself.
A view Guided can't show, such as one with UNION or a subquery, stays in Basic and is not changed.
A view always shows the same rows, so it can't ask for a value. In Guided, tick Ask each time on a filter and choose Create a procedure instead: the procedure gets the same SELECT with the value as a parameter, and you run it with CALL name(value).
In SQL Wizard, Report a problem reaches us directly — or write to us.