Home > Backend Development > PHP Tutorial > 开发时,怎么选取mysql字段长度

开发时,怎么选取mysql字段长度

WBOY
Release: 2016-06-13 12:47:51
Original
871 people have browsed it

开发时,如何选取mysql字段长度
如我要存个值为:0123456789,选int型的那么他的"长度/值"该写多少呢?如何计算的 我发现这个长度/值写1,居然也能存进去,或者我要存字符串"你的名字"这4个字,选varchar型的,长度/值又该写多少呢

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template