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 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 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 IQ catalog store tables only.
CASE Statement
The CASE statement is a control statement that lets you
choose a list of SQL statements to execute based on the value of an expression.
COMMIT Statement
Makes changes
to the database permanent, or terminates a user-defined transaction.
CREATE AGENT Statement
Associates an SAP IQ agent
for SAP IQ Cockpit with the named server to support
high availability.
CREATE DBSPACE Statement
Creates a new dbspace and the associated dbfiles for the IQ main store,
cache dbspace, catalog store, or RLV store.
CREATE EVENT Statement
Defines an event and its associated handler for automating
predefined actions. Also defines scheduled actions.
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 a 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 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 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.
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 within a compound statement (BEGIN... END).
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 ROLE Statement
Removes a user-defined role from the database or converts a
user-extended role to a regular user.
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.
DROP TRIGGER statement
Removes a trigger from the database. This statement applies to SAP IQ catalog store tables only.
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.
FOR Statement
Repeats the execution of a statement list once for each row
in a cursor.
FOR JSON Statement
You can execute a 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 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 IQ
IF statement.
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.
LEAVE Statement
Continues execution by leaving a compound statement or LOOP.
LOCK TABLE Statement
Prevents other concurrent transactions from accessing or modifying
a table within the specified time.
MESSAGE Statement
Displays a message, which can be any expression. Clauses can specify where
the message is displayed.
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.
RETURN Statement
Exits a function or procedure unconditionally, optionally
providing a return value. Statements following RETURN are
not executed.
REVOKE SET USER Statement
Removes the ability for one user to impersonate another user and to administer the
SET USER system privilege.
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 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.
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.
STOP JAVA Statement
Releases resources associated with the Java VM to economize on the use of
system resources.
TRIGGER EVENT Statement
Triggers a named event. The event may be defined for event
triggers or be a scheduled event.
TRUNCATE Statement
Deletes all rows from a table or materialized view without deleting the
table definition.
UPDATE Statement
Modifies existing rows of a single table, or a view that contains
only one table.
VALIDATE Statement
Validates the current database, or a single table, materialized view, or index in the
IQ catalog (system) store.
WAITFOR Statement
Delays processing for the current connection for a specified
amount of time or until a given time.