Sybase Adaptive Server Anywhere Reference page 350

Table of Contents

Advertisement

Alphabetical list of functions
Standards and
compatibility
DB_NAME function [System]
Function
Syntax
Parameters
Examples
Usage
Standards and
compatibility
DB_PROPERTY function [System]
Function
Syntax
Parameters
Example
Usage
Standards and
compatibility
332
Vendor extension.
SQL/92
Sybase
Compatible with Adaptive Server Enterprise.
Returns the name of a database with a given ID number.
DB_NAME ( [ database-id ] )
database-id
The ID of the database. The database-id must be a numeric
expression.
The statement returns the database name asademo, when executed against
the sample database as the sole database on the server.
SELECT DB_NAME( 0 )
If no database ID is supplied, the name of the current database is returned.
Vendor extension.
SQL/92
Compatible with Adaptive Server Enterprise.
Sybase
Returns the value of the given property.
DB_PROPERTY ( { property_id | property_name }
... [, { database_id | database_name } ] )
property_id
The database property ID.
property_name
The database property name.
database_id
The database ID number, as returned by DB_ID. Typically,
the database name is used.
database_name
The name of the database, as returned by DB_NAME.
The following statement returns the page size of the current database, in
bytes.
SELECT DB_PROPERTY( 'PAGESIZE' )
Returns a string. The current database is used if the second argument is
omitted.
SQL/92
Vendor extension.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents