• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set a value for all records?
#1
Hi all,
I'm probably missing something basic here, so grateful for any help.

I've recently modified a table with the addition of 3 new keys and would like to set a default value for all records for these 3 keys.
I know i can read the entire table into an array, loop through this in liveCode, make the changes and then do an update back to liveCloud.

However this is cumbersome; i had envisaged that i may be able to use batchMerge, or batchUpdate to do this and simply pass "*" as the cdbRecordID, but this does not work - cdb_result shows me the error is The specified cdbRecordID is invalid: *

Is there a way to do this directly? If not will just process in LiveCode and update all records, but am hoping i've missed something more straightforward...

Many thanks
Stam
  Reply


Messages In This Thread
How to set a value for all records? - by stamatis - 04-22-2021, 03:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)