日期:2014-05-17 浏览次数:20396 次
string sql="select allsjzy.addby as addby,allsjzy.addtime,allsjzy.fn,allsjzy.title,allusers.uid as uid from allsjzy inner join allusers on allsjzy.addby=allusers.username order by id desc";
SqlConnection conn = new SqlConnection();
conn.ConnectionString = connstring;
SqlCommand myCommand = new SqlCommand(sql, conn);
SqlDataAdapter da = new SqlDataAdapter(myCommand);
DataSet ds = new DataSet();
da.Fill(ds);