日期:2014-05-18 浏览次数:20361 次
SqlConnection con = new SqlConnection("server=localhost;database=7daydian;uid=sa;pwd=1234"); string dia = "dianliang"; string sql = "select '"+dia+"' from tongji order by shijian"; SqlCommand com = new SqlCommand(sql, con);