Any way to copy data from one table to another?
Options
Rajiv Chopra
Member ✭
Hi - I have about 45 records with images in one table and need to copy that to a new table. There are some differences in the type and number of fields between the two tables. Is it possible to copy the data without having to manually reload the new table?
Comments
-
Hey you won't be able to copy+paste the data from one table to the other... What you could do instead is build a function that:
Queries all records from table 1
For Each Loop through all records from table 1
Add Record for each item to table 2
You may need to be mindful of fields in table 1 going into a field in table 2 that is a different data type. You could perform any necessary data transformations in the for each loop before the add record. -
Hi Michael - thanks. will give this a try
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback