如何在将数据上传到数据库之前验证excel表。 [英] how to validate excel sheet before uploading its data to database.

查看:84
本文介绍了如何在将数据上传到数据库之前验证excel表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在创建一个应用程序,用户将使用Excel工作表将数据作为SQL上传到数据库中。我担心的是,在我们最终将数据从工作表上传到数据库之前,我必须在工作表上进行大量的验证检查。我读到了关于XSD但我不知道如何实现这一点。我的意思是直接从Excel工作表中读取数据,然后将其与预定义的格式进行比较,而不是将所有数据与上传到数据库的内容进行比较。

请提供一些想法或参考。

谢谢!

Hi all,

I am making a application where the user will upload the data into database as SQL using excel sheet. My concern is that I have to do a lot of validation checking on the sheet before we can finally upload the data into database from the sheet. I read about XSD but am not getting any idea how to achieve that. I mean directly reading the data from excel sheet and than comparing it with the predefined format and than if all is OK than uploading the contents to DB.
Please provide me with some idea or references.
Thank you !

推荐答案

我建​​议你阅读这篇好文章:用于验证和导出数据的Excel加载项框架 [ ^ ]。
I suggest you to read this great article: Excel Add-in Framework for Validating and Exporting Data[^].


这篇关于如何在将数据上传到数据库之前验证excel表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆