两个问题,1)string sqln = $"";这一个查询语句你写的不对。你可以打印出来看看。2)Datatable dtn = new DataTable(sqln);这个只是定义了dtn,并没有执行查询。