请问mysql 里如何创建超宽表# Database - 数据库
U*r
1 楼
我想创建一个表, 它的结构是这样的:
create table mytable(
myidfield mediumint unsigned not null,
s00 float not null,
s01 float not null,
s02 float not null,
s03 float not null,
...
...
s99 float not null,
primary key(myidfield));
我觉得从s00字段敲到s99字段好累, 请问有什么快捷的方法?
mysql 里好象没有用 for 循环来生成一长串有规律的字符串的功能.
这个表不能再规范化了, 就得这么宽才行.
create table mytable(
myidfield mediumint unsigned not null,
s00 float not null,
s01 float not null,
s02 float not null,
s03 float not null,
...
...
s99 float not null,
primary key(myidfield));
我觉得从s00字段敲到s99字段好累, 请问有什么快捷的方法?
mysql 里好象没有用 for 循环来生成一长串有规律的字符串的功能.
这个表不能再规范化了, 就得这么宽才行.