04-26-2019, 05:52 PM
This is the example from documentation: https://docs.livecloud.io/AddKeys/
It looks like the table, Clients, already has fields, occupation and address, and this command is initializing them as keys. Is this correct?
I'm a little confused by the comment, # Keys: firstName, lastName, age, income. Does that imply these were previously set as keys?
When defining keys in this way, field values are sorted as text. Correct? Are numeric keys currently supported?
Quote:local tTable, tKeys
# Table name: clients
# Keys: firstName, lastName, age, income
put "clients" into tTable
put "occupation,address" into tKeys
cdb_addKeys tTable,tKeys
It looks like the table, Clients, already has fields, occupation and address, and this command is initializing them as keys. Is this correct?
I'm a little confused by the comment, # Keys: firstName, lastName, age, income. Does that imply these were previously set as keys?
When defining keys in this way, field values are sorted as text. Correct? Are numeric keys currently supported?