SQL::IndexColumnInfo Object
A SQL index contains one or more columns. as a result, a SQL::IndexInfo object contains one or more SQL::IndexColumnInfo objects, each of which describes one of the column(s) that make up the primary key, the foreign key, of a unique or non-unique index.
|
dim conn as SQL::Connection dim ti as SQL::TableInfo dim ii as SQL::IndexInfo dim ic1 as SQL::IndexColumnInfo connString = "{A5API='Access', FileName='c:\program files\a5v8\mdbfiles\alphasports.mdb'}" if .not. conn.open(connString) then ui_msg_box("Error", conn.CallResult.text) end end if ic1.name = "lastname" ii.AddColumn(ic1) ii.unique = .f. ti.name = "customer" ui_msg_box("Index Column Definition", ic1.XML) |
The SQL::IndexColumnInfo object has the following properties.
|
Property |
Type |
Mode |
Description |
|
Ascending |
L |
R |
Default = FALSE (.F.)
|
|
Name |
C |
R |
Default = "". The unique name of the column to be indexed within the table. |
|
NullAllowed |
L |
R |
Default = FALSE (.F.)
|
|
ReferenceName |
C |
RW |
Default = "". |
|
XML |
C |
RW |
The schema in XML format. |
The SQL::IndexColumnInfo object has the following methods.
|
Method |
Description |
|
Makes a copy of the SQL::IndexColumnInfo object and its contents. |
See Also
Supported By
Alpha Five Version 8 Enterprise Edition
Limitations
Desktop applications only.