如果要开发这种工具的话,其实就是一条条的插入到数据库中。
1. 分析并确定数据格式
2. 根据字段,写代码来根据数据文件中的列头名作为数据表字段创建数据库表
3. 按照编码前分析并确定下来的数据格式来解析数据文件中的数据
4. 写代码执行SQL语句插入解析出来的数据
你能解析出来几种数据文件的格式,那么你的工具就支持那几种数据文件格式的数据。
归根结底,就是数据分析,字符串分析,这才是主要的模块,而剩下的导入到数据库步骤,就是使用[一个建表语句]一个插入语句。
Mike [MSFT]
MSDN Community Support |
Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
