在mysql中存储html代码的最佳方法是什么? [英] What's the best way to store html code in mysql?
本文介绍了在mysql中存储html代码的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
我对HTML内容使用哪种结构类型(MySQL)
Possible Duplicate:
What structure type do I use for HTML content (MySQL)
在mysql中存储html代码的最佳方法是什么?
What's the best way to store html code in mysql?
如果我说了整个页面的源代码并且想要保存,那么我在mysql中应该使用哪种数据类型?
if i have et's say an entire page source code and I want to save it, what kind of data shoudl i use in mysql?
此外,最好将代码另存为文件,文件名等于在mysql中创建的唯一ID(也许是为了在mysql中节省空间?)
also, it it better to just save the code as a file, with a filename equal to an unique id created in mysql (maybe to save space in mysql?)
推荐答案
我建议使用TEXT.我认为blob在多媒体等方面的作用远胜于文本.
I would recommend TEXT. I think blobs are more for multimedia etc. than text.
这篇关于在mysql中存储html代码的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文