ALTER DATABASE statement
Upgrades the database, turns jConnect support for a database on or off, calibrates the database, changes the transaction log and transaction log mirror file names, or forces a mirror server to take ownership of a database.
ALTER DBSPACE statement
Preallocates space for a dbspace or for the transaction log, or updates the catalog
when a dbspace file is renamed or moved.
ALTER EVENT statement
Changes the definition of an event or its associated handler for automating
predefined actions, or alters the definition of scheduled actions. You can also use this
statement to hide the definition of an event handler.
ALTER INDEX statement
Renames an index, primary key, or foreign key, or changes the clustered nature of an index.
ALTER PUBLICATION statement [MobiLink] [SQL Remote]
Alters a publication. In MobiLink, a publication identifies synchronized data in a
SQL Anywhere remote database. In SQL Remote, a publication identifies replicated data in both
consolidated and remote databases.
ALTER ROLE statement
Migrates a compatibility role to a user-defined role, and then drops the
compatibility role.
ALTER TRIGGER statement
Replaces a trigger definition with a modified version. You must include the entire
new trigger definition in the ALTER TRIGGER statement.
ATTACH TRACING statement (deprecated)
The diagnostic tracing feature is deprecated. Use the SQL Anywhere Profiler to diagnose issues in your database. The ATTACH TRACING statement starts a diagnostic tracing session (starts sending diagnostic information to the diagnostic tables).
BEGIN PARALLEL WORK statement
Saves time when executing a list of CREATE INDEX or LOAD TABLE statements on a computer
with multiple logical processors.
COMMIT statement
Makes changes to the database permanent, or terminates a user-defined transaction.
CREATE CERTIFICATE statement
Adds or replaces a certificate in the database from the given file or string. To
create a certificate, use the Certificate Creation utility (createcert).
CREATE DECRYPTED FILE statement
Creates a decrypted copy of a strongly encrypted database, and can be used to create decrypted copies of transaction logs, transaction log mirrors, and dbspaces.
CREATE ENCRYPTED DATABASE statement
Creates an encrypted copy of an existing database, including all transaction logs and dbspaces; or creates a copy of an existing database with table encryption enabled.
CREATE ENCRYPTED FILE statement
Creates a strongly encrypted copy of a database file when you cannot use the CREATE ENCRYPTED DATABASE statement. Also creates encrypted copies of the transaction log, transaction log mirror, and dbspace files.
CREATE EVENT statement
Defines an event and its associated handler for automating predefined actions, and to define scheduled actions.
CREATE LOCAL TEMPORARY TABLE statement
Creates a local temporary table within a procedure that persists after the procedure completes and until it is either explicitly dropped, or until the connection terminates.
CREATE MUTEX statement
Creates or replaces a mutex (lock) that can be used to lock a resource such as a file or a procedure.
CREATE PUBLICATION statement [MobiLink] [SQL Remote]
Creates a publication. In MobiLink, a publication identifies synchronized data in a
SQL Anywhere remote database. In SQL Remote, publications identify replicated data in both
consolidated and remote databases.
CREATE ROLE statement
Creates or replaces a role, creates a user-extended role, or modifies administrators for a role.
CREATE SEMAPHORE statement
Creates or replaces a semaphore and establishes the initial value for its counter. A semaphore is a locking mechanism that uses a counter to communicate and control the availability of a resource such as an external library or procedure.
CREATE SEQUENCE statement
Creates a sequence that can be used to generate primary key values that are unique across multiple tables, and for generating default values for a table.
CREATE TABLE statement
Creates a new table in the database and, optionally, creates a table on a remote server.
CREATE TIME ZONE statement
Creates a time zone object that can be used by the database to simulate a time zone that is different from the server's time zone.
DEALLOCATE statement
This statement has no effect in SQL Anywhere, and
is ignored. It is provided for compatibility with Adaptive Server Enterprise and Microsoft
SQL Server. Refer to your Adaptive Server Enterprise or Microsoft SQL Server documentation
for more information about this statement.
Declaration section [ESQL]
Declares host variables in an Embedded SQL program. Host variables are used to
exchange data with the database.
DECLARE statement
Declares a SQL variable (connection-scope) or an exception within a compound statement (BEGIN...END).
DESCRIBE statement [ESQL]
Gets information about the host variables required to store data retrieved from the database, or host variables required to pass data to the database.
DETACH TRACING statement (deprecated)
The diagnostic tracing feature is deprecated. Use the SQL Anywhere Profiler to diagnose issues in your database. The DETACH TRACING session ends a diagnostic tracing session.
DROP ROLE statement
Removes a role from the database, or converts a user-extended role back to a regular
user.
EXECUTE statement [T-SQL]
Invokes a procedure (an Adaptive Server Enterprise-compatible alternative to the CALL statement), executes a prepared SQL statement in Transact-SQL.
FETCH statement [ESQL] [SP]
Positions, or re-positions, a cursor to a specific row, and then copies expression values from that row into variables accessible from within the stored procedure or application.
FOR statement
Repeats the execution of a statement list once for each row in a cursor.
FROM clause
Specifies the database tables or views involved in a DELETE, SELECT, or UPDATE
statement. When used within a SELECT statement, the FROM clause can also be used in a MERGE or
INSERT statement.
GET OPTION statement [ESQL]
Gets the current setting of an option. It is recommended that you use the
CONNECTION_PROPERTY function instead.
GRANT statement
Grant system and object-level privileges to users and roles.
GRANT CONNECT statement
Creates a new user, and can also be used by a user to change their own password. However, it is recommended that you use the CREATE USER statement to create users instead of the GRANT CONNECT statement.
GRANT REMOTE statement [SQL Remote]
Identifies a database immediately below the current database in a SQL Remote
hierarchy, that will receive messages from the current database. These are called remote
users.
GROUP BY clause
Groups columns, alias names, and functions as part of the SELECT statement.
IF statement
Controls conditional execution of SQL statements.
IF statement [T-SQL]
Controls conditional execution of a SQL statement, as an alternative to the Watcom
SQL IF statement.
INSERT statement
Inserts a single row or a selection of rows from elsewhere in the database into a
table.
LOAD STATISTICS statement
Intended for internal use, this statement is used by the dbunload utility to unload
column statistics from the old database into the ISYSCOLSTAT system table.
MERGE statement
Merges tables, views, and procedure results into a table or view.
PIVOT clause
Pivots a table expression in the FROM clause of a SELECT statement (FROM pivoted-derived-table) into a pivoted derived table. Pivoted derived tables offer an easy way to rotate row values from a column in a table
expression into multiple columns and perform aggregation where needed on the columns included in the result set.
PRINT statement [T-SQL]
Returns a message to the client, or display a message in the database server messages
window.
READTEXT statement [T-SQL]
Reads text and image values from the database, starting from a specified offset and
reading a specified number of bytes. This feature is provided solely for compatibility with
Transact-SQL and its use is not recommended.
REFRESH TRACING LEVEL statement (deprecated)
The diagnostic tracing feature is deprecated. Use the SQL Anywhere Profiler to diagnose issues in your database. The REFRESH TRACING LEVEL statement reloads the tracing levels from the sa_diagnostic_tracing_level table while a tracing session is in progress.
REORGANIZE TABLE statement
Defragments tables when a full rebuild of the database is not possible due to the
requirements for continuous access to the database.
RETURN statement
Exits from a function, procedure, or batch unconditionally, optionally providing a
return value.
REVOKE PUBLISH statement [SQL Remote]
Terminates the identification of the named user ID as the current publisher. You must
have the SYS_REPLICATION_ADMIN_ROLE system role to revoke publisher rights.
REVOKE statement
Revokes system and object-level privileges from users and roles.
ROLLBACK statement
Ends a transaction and undo any changes made since the last COMMIT or
ROLLBACK.
SET statement [T-SQL]
Sets database options for the current connection in an Adaptive Server
Enterprise-compatible manner.
SETUSER statement
Allows a user to assume the identity of (impersonate) another authorized user.
SYNCHRONIZE statement [MobiLink]
Synchronizes a SQL Anywhere
database with a MobiLink server. The synchronization options can be specified in the
statement itself.
TRIGGER EVENT statement
Triggers a named event. The event may be defined for event triggers or be a scheduled
event.
TRY statement
Implements error handling for compound statements (if an error occurs in the TRY
block, it passes control to another group of statements that is enclosed in a CATCH
block).
UNION statement
Combines the results of two or more SELECT statements or query expressions.
UNPIVOT clause
Unpivots compatible-type columns of a table expression in a FROM clause (FROM
unpivoted-derived-table expression) into rows in a derived table.
Unpivoting is used to normalize data, for example when you have similar data stored in multiple
columns in tables and you want to return it in one column.
VALIDATE statement
Validates the current database, one or more tables, materialized views, or indexes in the current
database.
WAITFOR statement
Delays processing for the current connection for a specified amount of time or until a given time.
WINDOW clause
Defines all or part of a window for use with window functions such as AVG and RANK in a SELECT statement.
WRITETEXT statement [T-SQL]
Permits non-logged updating of a CHAR, NCHAR, or BINARY column. This feature is
provided solely for compatibility with Transact-SQL and its use is not
recommended.