Permissions
Side effects
See also
Description
Parameters
Must have RESOURCE authority.
Must have DBA authority to create a table for another user.
The AT clause to create proxy tables is supported on Windows 95 and
Windows NT only.
Automatic commit.
"ALTER TABLE statement" on page 392
"CREATE DBSPACE statement" on page 431
"CREATE EXISTING TABLE statement" on page 441
"DECLARE LOCAL TEMPORARY TABLE statement" on page 495
"DROP statement" on page 505
"Special values" on page 247
"SQL Data Types" on page 263
"Creating tables" on page 126 of the book ASA User's Guide
The CREATE TABLE statement creates a new table. A table can be created
for another user by specifying an owner name. If GLOBAL TEMPORARY
is specified, the table is a temporary table. Otherwise, the table is a base
table.
The definition of a temporary table exists in the database, like that of a base
table, and remains in the database until it is explicitly removed by a DROP
TABLE statement. The rows in a temporary table are visible only to the
connection that inserted the rows. Multiple connections from the same or
different applications can use the same temporary table at the same time, and
each connection will see only its own rows. The rows of a temporary table
for a connection are deleted when the connection ends.
IN clause
The IN clause specifies the dbspace in which the table is to be
created. If the table is a GLOBAL TEMPORARY table, the IN clause is
ignored.
$
For more information about dbspaces, see "CREATE DBSPACE
statement" on page 431.
ON COMMIT clause
The ON COMMIT clause is allowed only for
temporary tables. By default, the rows of a temporary table are deleted on
COMMIT.
AT clause
Create a remote table on a different server specified by
location-string and also a proxy table on the current database that maps to
the remote table. The AT clause supports the semicolon (;) as a field
delimiter in location-string. If no semicolon is present, a period is the field
delimiter. This allows filenames and extensions to be used in the database
and owner fields.
Chapter 9 SQL Statements
467
Need help?
Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?
Questions and answers