clickhouse c#查询 ExecuteReader

using (var cnn = GetConnection(connStr))
{

var cmd = cnn.CreateCommand("SELECT DISTINCT ReceiverMobile from crm.Tag_Teacher limit 20000");

var dr=cmd.ExecuteReader();
do
{
while (dr.Read())
{
string str = dr[0].ToString();

}
}
while (dr.NextResult());
dr.Close();


}

 

posted @ 2020-03-20 09:03  老子不服  阅读(1233)  评论(1编辑  收藏  举报