选择当前表的列名
这个问题在这里已经有了答案:
using(var reader = command.ExecuteReader())
{
reader.Read();
var table = reader.GetSchemaTable();
foreach (DataColumn column in table.Columns)
{
Console.WriteLine(column.ColumnName);
}
}
链接地址: http://www.djcxy.com/p/93835.html
上一篇: select column names of current table
下一篇: Do es6 template literals protect against sql injection?