U*********r 发帖数: 68 | 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 循环来生成一长串有规律的字符串的功能.
这个表不能再规范化了, 就得这么宽才行. | c*******e 发帖数: 8624 | 2 excel? hehe
【在 U*********r 的大作中提到】 : 我想创建一个表, 它的结构是这样的: : 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,
| B*****g 发帖数: 34098 | 3 有在这儿发问的时间01-99敲都敲完了。
【在 c*******e 的大作中提到】 : excel? hehe
| T****n 发帖数: 6187 | | U*********r 发帖数: 68 | 5 原来你也逛DB版.
【在 B*****g 的大作中提到】 : 有在这儿发问的时间01-99敲都敲完了。
| U*********r 发帖数: 68 | 6 多谢!
我这就研究python去, 希望它比我原先的solution C/C++ + mysql更快些.
【在 T****n 的大作中提到】 : python+mysqldb
| B*****g 发帖数: 34098 | 7 呵呵,你是谁的马甲?
【在 U*********r 的大作中提到】 : 原来你也逛DB版.
| U*********r 发帖数: 68 | 8 我没有马甲啊. 你的照片很special, 见过几次就记住了.
【在 B*****g 的大作中提到】 : 呵呵,你是谁的马甲?
| c*****d 发帖数: 6045 | 9 写个shell脚本最简单
【在 U*********r 的大作中提到】 : 我想创建一个表, 它的结构是这样的: : 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,
|
|