我有这个代码
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"] 转换为字符串数组?
慕码人8056858
犯罪嫌疑人X
相关分类