Difference between revisions of "SETDATAMAPPING Column Constraint"
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Column constraint to specify the display data mapping for a column ==Syntax== SET SETDATAMAPPING <expC> ==See Also== ALTER TABLE, SQL Constraints|CONSTRAIN...") |
Yvonne.milne (Talk | contribs) |
||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[ALTER TABLE]], [[SQL Constraints| | + | [[ADESC()]], [[AFIELDS()]], [[ALTER TABLE]], [[ASTORE()]], [[ASTRING()]], [[GETDATAMAPPING Column Constraint|Getdatamapping Column Constraint]], [[SQL Constraints|Constraints]], [[CREATE TABLE]], [[Data Mapping]], [[DBF()]], [[FIELD()]], [[FIELDAUTOSUGGESTIONS()]], [[FIELDAUTOSUGGESTIONHEADERS()]], [[FIELDCHOICES()]], [[FIELDINFO()]], [[FIELDNAME()]], [[FILTER()]], [[FLDCOUNT()]], [[FLDLIST()]], [[GETDATAMAPPING()]], [[INDEX]], [[INDEXKEY()]], [[KEYLOOKUP()]], [[LABEL()]], [[LIST DICTIONARY]], [[NDX()]], [[RTOS()]] |
==Description== | ==Description== |
Latest revision as of 05:15, 27 March 2018
Contents
Purpose
Column constraint to specify the display data mapping for a column
Syntax
SET SETDATAMAPPING <expC>
See Also
ADESC(), AFIELDS(), ALTER TABLE, ASTORE(), ASTRING(), Getdatamapping Column Constraint, Constraints, CREATE TABLE, Data Mapping, DBF(), FIELD(), FIELDAUTOSUGGESTIONS(), FIELDAUTOSUGGESTIONHEADERS(), FIELDCHOICES(), FIELDINFO(), FIELDNAME(), FILTER(), FLDCOUNT(), FLDLIST(), GETDATAMAPPING(), INDEX, INDEXKEY(), KEYLOOKUP(), LABEL(), LIST DICTIONARY, NDX(), RTOS()
Description
A constraint is used to define rules that help to provide data integrity. Column constraints are specific to the column name specified. You must have ALTER privilege on the table. The table will be locked for EXCLUSIVE use during the operation.
The SETDATAMAPPING column constraint is used to specify the update data mapping for a column.
Example
open database southwind alter table "products" modify constraint supplierid set choices 'select companyname from suppliers order by companyname' alter table "products" modify constraint supplierid set getdatamapping 'keylookup("suppliers", "supplierid",{}, companyname)' alter table "products" modify constraint supplierid set setdatamapping 'keylookup("suppliers", "companyname","{}", supplierid)'