不知道错误在哪里。

解决方案 »

  1.   

    sql server2000使用select count(某字段名) from table提示"在这一子查询或聚合表达式中,text、ntext 和 image 数据类型无效。" count()的字段类型为text、ntext 和 image 错误!!
      

  2.   

    sql server2000使用select count(某字段名) from table提示"在这一子查询或聚合表达式中,text、ntext 和 image 数据类型无效。" 
    --------------------------------------------
    你可以将某字段名改成其实非text、ntext 和 image 字段,也可以改成1
    Count(1)和count(某字段名) 意义一样的,下面两程都可以
    Select Count(1) From table
    Select Count(Cast(t As Varchar(8000))) From table