Hi There,
Just wondering how to import data from an excel or CSV into database tables?
Can anybody provide some guidance?
Thanks
Hi There,
Just wondering how to import data from an excel or CSV into database tables?
Can anybody provide some guidance?
Thanks
Hi @riazahmed2019
If you want to import data from a CSV file on your computer, then you need to upload it first and then read the uploaded file content and insert them in the database.
Upload the file to the server: https://docs.wappler.io/t/uploading-single-file-to-your-server/4231
Add the import CSV step:
For the CSV file path, use the path
returned from the upload step:
Add your CSV fields:
Add a repeater step and use the CSV Import step as an expression:
Add Insert Record inside the repeat, so it is executed per row. In the insert record step adjust which CSV field to be inserted in which database field:
@Teodor thanks for the tutorial, it worked perfectly!!!