使用select count(*) from role where id = 1
可以提取除数据
但是用
select count(*) from role where name = '王明' 
有这个数据但是读不出来using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using MySql.Data;
using MySql.Data.MySqlClient;        private void btnScreach_Click(object sender, EventArgs e)
        {
            string sql = "select count(*) from role where name='狂'";
            MySqlCommand command = new MySqlCommand(sql, DBhelp.connection);
            DBhelp.connection.Open();
            int count = Convert.ToInt32(command.ExecuteScalar());
        }dll地址
http://mysql.isu.edu.tw/Downloads/Connector-Net/?dir=/Unix/Database/MySQL/Downloads/Connector-Net&page=3
高手给个提示,那里的问题