简体   繁体   English

带有xml文件的建议数据库表。 (mysql / php)

[英]Suggestions database table with xml files. (mysql/php)

I am looking for some suggestions on how to design the database and if it is possible to do what I want. 我正在寻找有关如何设计数据库以及是否有可能做我想做的建议。 I am trying to get a xml into a database table by a uploading form. 我正在尝试通过上传表单将xml插入数据库表中。 The table should handle more than 1 xml file. 该表应处理多个1个xml文件。 The concents should remain inside the file but should also be able to read (display on page). 浓度应保留在文件内,但也应能够读取(在页面上显示)。 (eg select the xmlfile you desire and display the contents of that file) (例如,选择所需的xmlfile并显示该文件的内容)

Is this even possible or do I have to upload the xml's content in a table (eg ) to be able to display it on a webpage? 这是否有可能,或者我是否必须将xml的内容上载到表(例如)中才能显示在网页上?

I hope someone can help me out with this one. 我希望有人可以帮助我解决这个问题。

Thanks. 谢谢。

I don't know what you are trying to achieve here but you will need to build a schema that matches xml structure. 我不知道您要在这里实现什么,但是您将需要构建一个与xml结构匹配的架构。

And is you ask why? 你问为什么? You might need to filter results in future and using xml files to filter results is tiresome 您将来可能需要过滤结果,并且使用xml文件过滤结果很麻烦

Let us know if you need help designing schema! 让我们知道您是否需要设计架构的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM