MvPRIMARY#
Several database aliases can be open at the same time, but one alias is said to be the primary alias. This is the default alias for all database operations except creating and opening a database. With the exceptions <MvCREATE>
and <MvOPEN>
, if the NAME
attribute is not specified by a database tag, that tag’s action will be performed on the database pointed to by the primary alias. By default, the primary alias is the last one to be opened with <MvOPEN>
or <MvCREATE>
. If more than one alias is open, <MvPRIMARY>
makes the NAME
alias the primary one.
Syntax
<MvPRIMARY NAME = "string: { expression } | literal"
INDEX = "string: { expression } | literal">
Attributes#
Attribute | Description |
---|---|
NAME |
Required. Database alias. Explicitly declares this alias to be the primary database. |
INDEX |
Optional. Index file name. Explicitly declares this file alias to be the primary index for the primary database. |
The alias database must currently be open or a runtime error will occur.
Example#
<MvPRIMARY NAME="employees" INDEX="emp_start.mvx">