Redian新闻
>
请问mysql 里如何创建超宽表
avatar
请问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 循环来生成一长串有规律的字符串的功能.
这个表不能再规范化了, 就得这么宽才行.
avatar
c*e
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,

avatar
B*g
3
有在这儿发问的时间01-99敲都敲完了。

【在 c*******e 的大作中提到】
: excel? hehe
avatar
T*n
4
python+mysqldb
avatar
U*r
5
原来你也逛DB版.

【在 B*****g 的大作中提到】
: 有在这儿发问的时间01-99敲都敲完了。
avatar
U*r
6
多谢!
我这就研究python去, 希望它比我原先的solution C/C++ + mysql更快些.

【在 T****n 的大作中提到】
: python+mysqldb
avatar
B*g
7
呵呵,你是谁的马甲?

【在 U*********r 的大作中提到】
: 原来你也逛DB版.
avatar
U*r
8
我没有马甲啊. 你的照片很special, 见过几次就记住了.

【在 B*****g 的大作中提到】
: 呵呵,你是谁的马甲?
avatar
c*d
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,

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。