e.F0004 ,f.F0004,h.F0006为文本类型!

解决方案 »

  1.   

    the error message is so clear
      

  2.   

    你的text放的什么,如果不长的话可以换成varchar数据类型
      

  3.   

    因为你用union,他们将那些相同的记录只返回一条,
    如果你有text字段,就没有办法比较是不是相同,所以出现了:
    The text, ntext, or image data type cannot be selected as DISTINCT.
      

  4.   

    "Union" required not only Type is same,but also both the Field length is same.
      

  5.   

    Server: Msg 8163, Level 16, State 4, Line 1
    The text, ntext, or image data type cannot be selected as DISTINCT.字段的类型不一致,导致该错误,修改字段属性即可
      

  6.   

    我写过这样的union,的确与这位仁兄Fondfencer说的一样
      

  7.   

    distinct 字段不支持text,ntext,image类型的