SQLSelect.SetPrimaryKey Method | |
Specify a column to be used as a unique index in searched updates or deletes that require a key (i.e., SQLSelect:ScrollUpdateType = SQL_SC_UPD_KEY).
Namespace:
VO
Assembly:
VOSQLClasses (in VOSQLClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD SetPrimaryKey(
uFieldPos
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual SetPrimaryKey(
Usual uFieldPos = default
)
Request Example
View SourceParameters
- uFieldPos (Optional)
- Type: Usual
The name, number, or symbol representing the desired column.
Return Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
Remarks
If SQLSelect:SetPrimaryKey() is passed a zero as an argument, all assigned columns are cleared. You can also find the unique index columns by using the SQLListSpecialColumns class.
See Also