Insert html tags in mysql table with C#
i have this question about mysql
data in a tab开发者_开发技巧le... how can i insert an html text with tags, text, etc in a mysql
table?
What datatype do i need to store something like that and what do i need to encode or whatever i need to perform the insert?
I'm using c# 4.0 and mysql connector 6.3.6
Thanks!
Use the TINYTEXT
, TEXT
, MEDIUMTEXT
or LONGTEXT
datatypes depending on how much data you are expecting.
If you are dealing with UTF-8 encoded html make sure that your collation matches that.
精彩评论