日期:2014-05-17 浏览次数:21073 次
string strcon = "server=sxsoft2;database=wu;uid=sa;pwd=11";按道理应该有一行数据写进去的,但是这边报错。。。。。。。
string strsum = "select null as name,null as text,null as time,null as id,sum(money) as money from tableGet";
string strall = "select name,text,time,id,money from tableGet";
public Form1()
{
InitializeComponent();
DataTable table = new DataTable();
table = ser.getDataSource(strsum);
MessageBox.Show(table.Rows.Count.ToString());
}
if(dst.Tables[0].Rows.Count>=1) //源代码条件>1 把1条数据的情况给排除了
{
return dst.Tables[0];
}
else
{
return null;
}