说你SQL语句有问题呢!
好好检查下SQL先!

解决方案 »

  1.   

    Sql 语句不是应该是这样的吗?select <column1>, <column2>,... from <Table>你的
    Select allName 客户公司,shortName 简称,Contacts ...allName 和 客户公司中间怎么是空格呢?
      

  2.   

    恩。你的SQL语句写错了啊 看你的意思应该是这样吧 select allName,客户公司 from table 
      

  3.   

    在查询分析器下, 能正常运行这个SQL语句而且查询出数据
      

  4.   

    我也遇到了这样的问题。而且,我觉得肯定不是sql语句的问题。因为我的语句写的是
    select * from table;
    也是报了上面的错误!
    期待能有答案。
      

  5.   

            MySQLConnection conn = null;        conn = new MySQLConnection(new MySQLConnectionString("10.3.0.99", "test", "test", "test",6033).AsString);        conn.Open();        MySQLCommand commn = new MySQLCommand("set names GBK;", conn);        commn.ExecuteNonQuery();        string sql = " select * from  banma";        MySQLDataAdapter mda = new MySQLDataAdapter(sql, conn);        DataSet ds = new DataSet();        mda.Fill(ds, "banma");        this.Repeater1.DataSource = ds;        this.Repeater1.DataBind();        conn.Close();