【发布时间】:2010-05-12 23:10:38
【问题描述】:
我有一张这样的桌子:
number stuff1 stuff2 stuff3
-------------------------------
1 x y
2 a
3 b
4 c d e
我想用sql语句把它变成这样:
number stuff1 stuff2 stuff3
-------------------------------
1 x
1 y
2 a
3 b
4 c
4 d
4 e
我在构建 sql 语句时遇到问题。请帮忙! alt text http://img193.imageshack.us/img193/8408/35944096.png
【问题讨论】:
-
很抱歉,无法以良好的格式做到这一点
-
如果您提供例如您的字段名称,那么回答起来会容易得多。通过查看表格,我们无法看到 x 和 y 的存储位置以及它们的表示方式。