a  b  c  d  e
f 1  5  6  2  9
g 6  4  2  0  1
h 3  1  9  8  0
j 8  6  1  2  7
k 9  0  2  6  5根据C和g查到2;如何设计表?

解决方案 »

  1.   


    见两个表
    create table tb1(id int,a int, b int ,c int, ……)
    create table tb2(id int,state nvarchar(2))
    表tb1的id与表tb2的Id对应,将f,g,h,j,保存到state字段
      

  2.   

        a     b     c     d     e 
    f   1     5     6     2     9 
    g   6     4     2     0     1 
    h   3     1     9     8     0 
    j   8     6     1     2     7 
    k   9     0     2     6     5 
    ----------------------------------------
    table_1
    ---------
    c_1  c_2   value
    a     f      1
    b     f      5
    c     f      6
    .....
    类似上述表述建一个表就行了,不知道能不能达到楼主的要求