Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 100 个字符存储在数据库中,但 30 个字符存储在数据库中,其余字符未存储在数据库中请给我建议以增加 html 文本框的字符长度
<input type="text" maxlength="100" />
除非您的数据库字段只是一个 varchar(30),在这种情况下,您必须将ALTER TABLE其扩展为 100 个字符。
ALTER TABLE
您提供的详细信息不足以准确找出问题所在。
这取决于那是否是注释字段,是否为该字段提供文本属性..它将需要..
或者如果它是名称,用户名,给 varchar(100) 它将采取..
http://forums.mysql.com/read.php?24,105964,105964