Translations:Kexi/Tutorials/Drilling Down on Facebook Data/23/en: Difference between revisions
Appearance
Importing a new version from external source |
(No difference)
|
Latest revision as of 06:50, 20 May 2019
A possible bug in the above script is that it assumes there are no current records in the table, and creates primary keys starting at 1. It is OK to run the script once, but if it is run again, it won't overwrite records that have an ID matching what it is trying to insert. To make it more robust, it would need to first find out the current maximum of the ID field. This would be a good exercise to get used to writing scripts.