• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Primary Key (cdbRecordId)
#3
Hi stamatis,

Here's an example of how to provide your own cdbRecordID:

local tDataA, tTable, tTarget

# Table name: clients
# Keys: firstName, lastName, age, income

put myUUID into tDataA["cdb"]["cdbRecordID"] //replace myUUID with the uuid you want to use for the cdbRecordID
put "John" into tDataA["firstName"]
put "Smith" into tDataA["lastName"]
put "47" into tDataA["age"]
put "100000" into tDataA["income"]
put "clients" into tTable
put "cloud" into tTarget

put cdb_create(tDataA,tTable,tTarget) into tRecordID
  Reply


Messages In This Thread
Primary Key (cdbRecordId) - by stamatis - 08-23-2020, 11:02 AM
RE: Primary Key (cdbRecordId) - by mark_talluto - 08-23-2020, 08:24 PM
RE: Primary Key (cdbRecordId) - by efrain.c - 08-24-2020, 04:24 PM
RE: Primary Key (cdbRecordId) - by stamatis - 10-19-2020, 02:36 AM
RE: Primary Key (cdbRecordId) - by efrain.c - 10-19-2020, 08:55 PM
RE: Primary Key (cdbRecordId) - by stamatis - 10-20-2020, 01:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)