最佳答案:SqlConnectioncon=newSqlConnection("连接数据库字符串");stringsql=string.Format("select*from表名wher