日期:2014-05-17 浏览次数:20915 次
select * from (
select ROW_NUMBER() over(order by Re_Id) as RowIndex,* from tabel
) as T where T.RowIndex between 1 and 100
select * from (
select ROW_NUMBER() over(order by Re_Id) as RowIndex,* from tabel
) as T where T.RowIndex between 101 and 200
Thread[] Threads=new Thread[5];
public void button1_Click(object sender, EventArgs e)
{
for (i=0;i<Threads.Length;i++)
{
Thread[i]=new Thread(() => { Task(arg1, arg2,arg3); });
Thread[i].Name="Thread"+i.ToString();
Thread[i].Start();
}
}
public void Task(string A,string B,string C)//一定要是Void返回值
{
MessageBox.Show(A+B+C,"我是"+Thread.CurrentThread.Name);
}