【发布时间】:2019-08-22 08:41:34
【问题描述】:
我有这个代码
public static void GetOnline1()
{
string query = "SELECT online FROM online";
SQLiteCommand myCommand = new SQLiteCommand(query, myConnection);
myConnection.Open();
SQLiteDataReader result = myCommand.ExecuteReader();
if (result.HasRows)
{
while (result.Read())
{
Console.WriteLine(result["online"]);
//result["online"] to string array?
}
}
myConnection.Close();
如何将 result["online"] 转换为字符串数组?
【问题讨论】: