How do I put values from a column of a SQL table into an array in C#?

前端 未结 0 1956
情歌与酒
情歌与酒 2021-01-21 19:39

I want to put the values of a column of a SQL table into an array.

SqlCommand cmd = new SqlCommand("SELECT ID FROM tblTray2");
string[] array = new stri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题