如何将 XML 文件中的数据插入到 3 个不同的表中
在 Access 数据库中,我有 3 个表:表、表2 和表3。表 1 是表 2 的主表,表 2 是表 3 的主表。因此,每当我滚动 Table1 时,Table2 和 Table3 都会相应地滚动。我在应用程序端使用 Delphi 2010。我可以将三个表的连接数据导出到 XML 文件。然后我必须将数据导入到另一个与源数据库具有相同结构的数据库中。我怎样才能做到这一点? Delphi 是否有一个好的 XML 解析器可供我使用?或者已经内置了一个?
In an Access database I have 3 tables:Table,Table2 and Table3. Table1 is master for Table2 and Table2 is master for Table3. So whenever I scroll Table1 I get both Table2 and Table3 scrolled at the accordingly. I'm using Delphi 2010 for application side. I can export data from the join of the three tables to an XML file. And then I have to import the data to another database which has got the same structure as the source database. How can I accomplish this? Is there a good XML parser for Delphi that I can use? Or is there one already built in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 XML 数据绑定向导 生成表示 XML 数据的类。然后您可以使用这些类将数据插入数据集。
You can use XML Data Binding Wizard to generate classes representing data from XML. Then you can use these classes to insert data into datasets.