【发布时间】:2018-01-26 01:14:42
【问题描述】:
public static List<string> GetColumns(SQLiteConnection connection, string tableName)
{
List<string> a = null;
try
{
string commandString = "PRAGMA table_info('" + tableName + "');";
SQLiteCommand command = connection.CreateCommand(commandString, new object[0]);
command.CommandText = commandString;
a = command.ExecuteQuery<string>();
}
catch (Exception e)
{
Debug.LogException(e);
}
return a;
}
我不知道如何从 executeQuery 中获取列。谁能帮帮我?
【问题讨论】: