ExecuteNonQuery()是update,delete ,insert影响行数,对于select永远返回-1 ExcuteScalar() select 未找到返回0; 转载于:https://www.cnblogs.com/yuluhuang/p/3312945.html