• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function: AddKeys (clarification)
#1
This is the example from documentation: https://docs.livecloud.io/AddKeys/ 

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?
  Reply


Messages In This Thread
Function: AddKeys (clarification) - by Paul - 04-26-2019, 05:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)