Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
894 views
in Technique[技术] by (71.8m points)

run sql query on EXCEL and Access to get unique values

I have 2 tables. One in Excel and one in Access. the Excel table contains around 5000 records and the Access Table contains around 50,000 records. At the excel table, I get new records all the time and I want to add only the new ones to the access database.
I really want to know how I can do that most efficiently, I thought about getting all the excel keys into an array then I just don't know how to get only what not in the access database.

Let's assume I have these records at my Excel and Access files:

Excel:

+-----+
| Key |
+-----+
| 123 |
| 124 |
| 125 |
| 126 |
+-----+

Access Table:

+-----+
| Key |
+-----+
| 123 |
| 124 |
| 125 |
+-----+

Result I want to achieve :

+-----+
| Key |
+-----+
| 126 |
+-----+

thank a lot, Lidor


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...