select * from table where array=id

解决方案 »

  1.   

    array={1,2,3,4,}table
    id   content
    1      a  
    2      b
    3      c
    4      d
    5      e
    6      g
    7      h
      

  2.   

    写错了,array={1,2,3,4}就是找出以array中所包含的值为id的数据
      

  3.   

    你这个就麻烦了!先要把array的数字提取出来!!然后才能够比较
      

  4.   

    T-SQL 里边好像没有数组.select * from table where id in(1,3,5,6)