# Executing SQL Commands

/text/shared/guide/data_enter_sql.xhp
SQL; executing SQL commands
queries;creating in SQL view
commands;SQL
executing SQL commands
mw changed "SQL;executing commands"
mw made "executing;" a one level entry
Executing SQL Commands
With the help of SQL commands you can control the database directly, and can also create and edit tables and queries.
Not all database types support all SQL instructions. If necessary, find out which SQL commands are supported by your database system.
To execute an SQL statement directly
- Choose File - Open to open a database file.
- Choose Tools - SQL.
- Click the Create Query in SQL View icon Icon or
  Select an existing query from the list and click the Edit icon Icon .
- In the Query window, choose View - Switch Design View On/Off. Edit the SQL command.
- Click the Run icon Icon . The result of the query is displayed in the upper window.
- Click the Save or Save As icon Icon to save the query.
Query Design