什么是让我的Excel文件进入我的2个目标表的最佳方式是什么?操作列告诉我是否希望从表中插入或删除记录。这些表格是Fruits和FruitTypes。是否有可能直接查询到Excel而不是导入到临时表(不是那样不好或不允许,只是好奇,不重要)?我希望能够随时运行而不会覆盖。擅长sql帮助
Excel
------
FruitCode,Desc1,FruitType,Desc2, Action
-----------------------------------
Ap,Apple, Apple1, Apple Type 1, INS
Ap,Apple, Apple2, Apple Type 2, INS
Ap,Apple, Apple3, Apple Type 3, DEL
Or,Orange, Orange1, Orange Type 1, INS
Or,Orange, Orange2, Orange Type 2, INS
SQL Tables
-----------------
Table: Fruits (PK: FruitCode)
----------
FruitCode, Desc1
-----------------------
Ap, Apple
Or, Orange
Table: FruitTypes (PK: FruitCode, FruitType)
-----------
FruitCode, FruitType, Desc2
-----------------------
Ap,Apple1, Apple Type 1
Ap,Apple2, Apple Type 2
Or,Orange1, Orange Type 1
Or,Orange2, Orange Type 2