Adobe 38040334 - Dreamweaver CS3 User Manual page 66

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is the SQL
statement
Returns
An array of strings that represents a list of columns that match the
is invalid or the connection cannot be made.
Example
The code
var columnArray = MMDB.getColumnList("EmpDB","Select * from Employees")
following array of strings:
columnArray[0] = "EmpName"
columnArray[1] = "EmpFirstName"
columnArray[2] = "Age"
MMDB.getColumns()
Availability
Dreamweaver MX, arguments updated in Dreamweaver MX 2004.
Description
This function returns an array of objects that describe the columns in the specified table.
Arguments
connName, tableName
• The
argument is the connection name. This value identifies the connection containing the string that
connName
Dreamweaver should use to make a database connection to a live data source.
• The
argument is the table to query.
tableName
Returns
An array of objects, one object for each column. Each object defines the following three properties for the column
with which it is associated.
Property Name
name
datatype
definedsize
nullable
Example
The following example uses
var columnNameObjs = MMDB.getColumns(connName,tableName);
var databaseType = MMDB.getDatabaseType(connName);
statement to execute.
SELECT
Description
Name of the column (for example,
Data type of the column (for example,
Defined size of the column (for example,
Indicates whether the column can contain
to set the tooltip text value:
MMDB.getColumns()
statement, or an error if the SQL statement
SELECT
price
)
small money
)
8
)
null
values
DREAMWEAVER CS3
61
API Reference
returns the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents