Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I have used SQL Central a number of times to import data, but now want to edit an Excel spreadsheet and import data that excludes some existing records. No doubt there will be a unique record (like website address or phone number) but I'm not sure of the best way to import limited records.

Thank you

asked 07 Sep '22, 11:56

gchq's gravatar image

gchq
421263241
accept rate: 27%


I would create an "Import" table to upload the given Excel file without limitations.

Then you could:

  • Use SQL statements to import the correct data from this "Import" with the proper excluded data.
  • Remove/update the data in the "Import" table that should be excluded before importing the data from this "Import" table

Afterwards you can remove this "Import" table. You could also leave it in the database for future imports of the same Excel format.

permanent link

answered 08 Sep '22, 03:59

Frank%20Vestjens's gravatar image

Frank Vestjens
1.3k354765
accept rate: 21%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×246

question asked: 07 Sep '22, 11:56

question was seen: 496 times

last updated: 08 Sep '22, 03:59