freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

用c制作學(xué)生信息管理系統(tǒng)-資料下載頁(yè)

2025-08-23 10:16本頁(yè)面
  

【正文】 = ()) { = select count(*) from tlogin where username=@un and password=@pwd。 (new SqlParameter(un, 用戶(hù)名))。 (new SqlParameter(pwd, 密碼))。 int total = (())。 //返回值類(lèi)型不確定,是一個(gè)object return total。 } } } public void ExecuteNonQuery(string sql, params SqlParameter[] para) { string connstr = @server= .\ 。database=student。integrated security=sspi。 using (SqlConnection conn = new SqlConnection(connstr)) { ()。 using (SqlCommand cmd = new SqlCommand(sql, conn)) { (para)。 ()。 } } } public DataTable CreateTable() { DataTable table = new DataTable()。 string connstr = @server= .\ 。database=student。integrated security=sspi。 using (SqlConnection conn = new SqlConnection(connstr)) { ()。 string sql = select * from student。 using (SqlDataAdapter adapter = new SqlDataAdapter(sql, conn)) { (table)。 return table。 } } } public DataTable CreateTable1(string 學(xué)號(hào)) { DataTable table = new DataTable()。 string connstr = @server= .\ 。database=student。integrated security=sspi。 using (SqlConnection conn = new SqlConnection(connstr)) { ()。 using (SqlCommand cmd = ()) { = select sno 學(xué)號(hào),sname 姓名,sex 性別,birthday 出生日期from student where sno=@sno。 (new SqlParameter(sno, 學(xué)號(hào)))。 SqlDataAdapter adapter = new SqlDataAdapter(cmd)。 (table)。 return table。 } } } }}//StudentDAOusing System。using 。using 。using 。using 。 namespace DataAccessLayer{ public class StudentDAO { private SQLHelper sqlhelper = null。 public StudentDAO() { sqlhelper = new SQLHelper()。 } //增加 public void insert(string sno, string sname, string sex, string birthday) { string sql = insert into student values(@sno,@sname,@sex,@birthday)。 SqlParameter[] para = new SqlParameter[] { new SqlParameter(sno,), new SqlParameter(sname,), new SqlParameter(sex,), new SqlParameter(birthday, ) }。 int i = 0。 para[i++].Value = sno。 para[i++].Value = sname。 para[i++].Value = sex。 para[i++].Value = birthday。 (sql, para)。 } //刪除 public void delete(string sno) { string sql = delete from student where sno=@sno。 SqlParameter[] para = new SqlParameter[] { new SqlParameter(sno,) }。 int i = 0。 para[i++].Value = sno。 (sql, para)。 } //修改 public void modify(string sno, string sname, string sex, string birthday) { string sql = update student set sname=@sname where sno=@sno update student set sex=@sex where sno=@sno update student set birthday=@birthday where sno=@sno。 SqlParameter[] para = new SqlParameter[] { new SqlParameter (sno,SqlDbType .NChar), new SqlParameter (sname,SqlDbType .NVarChar ), new SqlParameter (sex,SqlDbType .NChar ), new SqlParameter (birthday,SqlDbType .NChar ) }。 int i = 0。 para[i++].Value = sno。 para[i++].Value = sname。 para[i++].Value = sex。 para[i++].Value = birthday。 (sql, para)。 } }}
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1