Statement Applicability Indicators
Some statement titles are followed by an indicator in square brackets that shows where the statement can be used.
Row Limitation Clauses in SELECT Query Blocks
The FIRST, TOP, and LIMIT clauses allow you to return a subset of the rows that satisfy the WHERE clause. The FIRST, TOP, and LIMIT clauses can be used within any SELECT query block that includes an ORDER BY clause. FIRST, TOP, and LIMIT can only be used in the top query block in a statement.
ALTER DATABASE Statement
Upgrades a database created with a previous version of the software, adds or removes jConnect™ for JDBC™ support, or defines management of system procedure execution. Run this statement with DBISQL Interactive SQL.
ALTER DBSPACE Statement
Changes the read/write mode, changes the size, or extends an existing dbspace.
ALTER DOMAIN Statement
Renames a user-defined domain or data type. Does not rename Java types.
ALTER EVENT Statement
Changes the definition of an event or its associated handler for automating predefined actions. Also alters the definition of scheduled actions.
ALTER FUNCTION Statement
Modifies an existing function. Include the entire modified function in the ALTER FUNCTION statement.
ALTER INDEX Statement
Renames indexes in base or global temporary tables, foreign key role names of indexes and foreign keys explicitly created by a user, or changes the clustered nature of an index on a catalog store table. You cannot rename indexes created to enforce key constraints.
ALTER LDAP SERVER Statement
Any changes to an LDAP server configuration object are applied on subsequent connections. Any connection already started when the change is applied does not immediately reflect the change.
ALTER LOGICAL SERVER Statement
Modifies configuration for the existing user-defined logical server in the database. This statement enforces consistent shared system temporary store settings across physical nodes shared by logical servers.
ALTER LS POLICY Statement
Modifies some or all option values for the root logical server policy or a user-created logical server policy. This statement enforces consistent shared system temporary store settings across physical nodes shared by logical servers.
ALTER PROCEDURE Statement
Replaces an existing procedure with a modified version. Include the entire modified procedure in the ALTER PROCEDURE statement, and reassign user permissions on the procedure.
ALTER ROLE Statement
Migrates a compatibility role to a user-defined system role, then automatically drops the compatibility role.
ALTER SEQUENCE statement
Alters a sequence. This statement applies to SAP Sybase IQ catalog store tables only.
ALTER SERVER Statement
Modifies the attributes of a remote server. Changes made by ALTER SERVER do not take effect until the next connection to the remote server.
ALTER TRIGGER statement
Replaces a trigger definition with a modified version. You must include the entire new trigger definition in the ALTER TRIGGER statement. This statement applies to SAP Sybase IQ catalog store tables only.
CREATE EXTERNLOGIN Statement
Assigns an alternate login name and password to be used when communicating with a remote server.
CREATE FUNCTION Statement
Creates a user-defined function in the database. A function can be created for another user by specifying an owner name. Subject to permissions, a user-defined function can be used in exactly the same way as other non-aggregate functions.
CREATE INDEX Statement
Creates an index on a specified table, or pair of tables. Once an index is created, it is never referenced in an SQL statement again except to delete it using the DROP INDEX statement.
CREATE LDAP SERVER Statement
Creates a new LDAP server configuration object for LDAP user authentication. Parameters defined during the creation of an LDAP server configuration object are stored in the ISYSLDAPSERVER (system view SYSLDAPSERVER) system table.
CREATE LOGICAL SERVER Statement
Creates a user-defined logical server. This statement enforces consistent shared system temporary store settings across physical nodes shared by logical servers.
CREATE LS POLICY Statement
Creates a user-defined logical server policy. This statement enforces consistent shared system temporary store settings across physical nodes shared by logical servers.
CREATE MESSAGE Statement [T-SQL]
Adds a user-defined message to the SYSUSERMESSAGES system table for use by PRINT and RAISERROR statements.
CREATE ROLE Statement
Creates a new role, extends an existing user to act as a role, or manages role administrators on a role.
CREATE SCHEMA Statement
Creates a schema, which is a collection of tables, views, and permissions and their associated permissions, for a database user.
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. This statement applies to SAP Sybase IQ catalog store tables only.
CREATE VIEW Statement
Creates a view on the database. Views are used to give a different perspective on the data even though it is not stored that way.
DELETE Statement
Deletes all the rows from the named table that satisfy the search condition. If no WHERE clause is specified, all rows from the named table are deleted.
DESCRIBE Statement [ESQL]
Gets information about the host variables required to store data retrieved from the database or host variables used to pass data to the database.
DROP LDAP SERVER Statement
Removes the named LDAP server configuration object from the SYSLDAPSERVER system view after verifying that the LDAP server configuration object is not in a READY or ACTIVE state.
DROP LOGICAL SERVER Statement
Drops a user-defined logical server. This statement enforces consistent shared system temporary store settings across physical nodes shared by logical servers.
DROP STATEMENT Statement [ESQL]
Frees resources used by the named prepared statement. These resources are allocated by a successful PREPARE statement, and are normally not freed until the database connection is released.
EXECUTE Statement [T-SQL]
Invokes a procedure, as an Adaptive Server-compatible alternative to the CALL statement.
EXECUTE IMMEDIATE Statement [ESQL] [SP]
Extends the range of statements that can be executed from within procedures. It lets you execute dynamically prepared statements, such as statements that are constructed using the parameters passed in to a procedure.
FETCH Statement [ESQL] [SP]
Retrieves one row from the named cursor. The cursor must have been previously opened.
FOR Statement
Repeats the execution of a statement list once for each row in a cursor.
FOR JSON Statement
You can execute an SQL query against your database and return the results as a JSON document by using the FOR JSON clause in a SELECT statement.
FROM Clause
Specifies the database tables or views involved in a SELECT statement.
GET DESCRIPTOR Statement [ESQL]
Retrieves information about variables within a descriptor area, or retrieves actual data from a variable in a descriptor area.
GRANT INTEGRATED LOGIN Statement
Creates an explicit integrated login mapping between one or more Windows user profiles and an existing database user ID. This allows a user who successfully logged in to their local machine to connect to a database without having to provide a user ID or password.
GRANT KERBEROS LOGIN Statement
Creates a Kerberos-authenticated login mapping from one or more Kerberos principals to an existing database user ID. This allows a user who has successfully logged in to Kerberos (user who has a valid Kerberos ticket-granting ticket) to connect to a database without having to provide a user ID or password.
GRANT ROLE Statement
Grants roles to users or other roles, with or without administrative rights.
GRANT SET USER Statement
Grants the ability for one user to impersonate another user and to administer the SET USER system privilege.
IF Statement
Lets you conditionally execute the first list of SQL statements whose search-condition evaluates to TRUE.
IF Statement [T-SQL]
Provides conditional execution of a Transact-SQL statement, as an alternative to the SAP Sybase IQ IF statement.
INCLUDE Statement [ESQL]
Includes a file into a source program to be scanned by the SQL source language preprocessor.
INSERT Statement
Inserts a single row or a selection of rows, from elsewhere in the current database, into the table. This command can also insert a selection of rows from another database into the table.
REMOVE Statement
Removes a class, a package, or a JAR file from a database. Removed classes are no longer available for use as a variable type. Any class, package, or JAR to be removed must already be installed.
ROLLBACK Statement
Undoes any changes made since the last COMMIT or ROLLBACK.
ROLLBACK TO SAVEPOINT Statement
Cancels any changes made since a savepoint was established. Changes made prior to the savepoint are not undone; they are still pending.
ROLLBACK TRANSACTION Statement [T-SQL]
Cancels any changes made since a savepoint was established using SAVE TRANSACTION. Changes made prior to the SAVE TRANSACTION are not undone; they are still pending.
SET DESCRIPTOR Statement [ESQL]
Describes the variables in an SQL descriptor area, and places data into the descriptor area.
SET OPTION Statement
Changes options that affect the behavior of the database and its compatibility with Transact-SQL. Setting the value of an option can change the behavior for all users or an individual user, in either a temporary or permanent scope.
SET SQLCA Statement [ESQL]
Tells the SQL preprocessor to use an SQLCA other than the default global sqlca.
SETUSER Statement
Allows a user to temporarily assume the roles and system privileges of another user (also known as impersonation) to perform operations, provided they already have the minimum required privileges to perform the task to begin with.
START JAVA Statement
Loads the Java VM at a convenient time, so that when the user starts to use Java functionality, there is no initial pause while the Java VM is loaded.