我有一张像
a1 a2 a3 a4
-----------
1 11 21 31
2 12 22 32
3 13 23 33
4 14 24 34
5 15 25 35
6 16 26 36
7 17 27 37
8 18 28 38
9 19 29 39
10 20 30 40
当我在存储过程中以 COLUM MAJOR ORDER 从 sql server 2008 读取数据时,将其存储在交流数组中的最佳方法是什么?
array = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,......40
像ROW MAJOR ORDER一样存储更好吗?,哪个更有效?
array = 1, 11, 21, 31,2,12,22,32,3,13,23,24,....10,20,30,40
我在用
SqlDataReader rdr = null;
// create a connection object
SqlConnection conn = new SqlConnection(
"Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI");
// create a command object
SqlCommand cmd = new SqlCommand("select * from a1,a2,a3,a4", conn);