我正在 MYSQL 中创建一个表:
$sql="CREATE TABLE $URL(Image BLOB,Rating INT(30000),Id INT AUTO_INCREMENT)";
$result=mysql_query($sql);
注:$URL是随机变量字符串
但是,什么也没有发生。有谁知道为什么吗?
最佳答案
“评级”列的显示宽度超出范围(最大值 = 255)
此外,让我向您粘贴可选显示宽度
的定义。
This optional display width may be used by applications to display integer values having a width less than the width specified for the column by left-padding them with spaces.
注意:
The display width does not constrain the range of values that can be stored in the column.
所有INT
类型将从-2147483648
到2147483647
关于php - 在 MYSQL 中创建表不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23072415/