eug*_*neK 0 c# asp.net ado.net
我如何实现简单的SQL查询
delete from Users where userCity='Munich'
Run Code Online (Sandbox Code Playgroud)
使用DataTables?
ps没有使用Linq或类似的东西只是因为我不通过项目使用它.
DataRow[] rows;
rows=dataTable.Select("userCity = 'Munich'");
foreach(DataRow r in rows)
r.Delete();
Run Code Online (Sandbox Code Playgroud)