Windows mobile开发实例指导

时间:2013-12-03 06:48:09
【文件属性】:

文件名称:Windows mobile开发实例指导

文件大小:83KB

文件格式:DOC

更新时间:2013-12-03 06:48:09

Windows mobile 开发实例

DataRow[] currRows = ds.Tables[0].Select(null, null, DataViewRowState.CurrentRows); if( currRows.Length < 1) return; foreach(DataRow myRow in currRows) { Id = myRow["id"].ToString(); Name = myRow["name"].ToString(); Age = myRow["age"].ToString(); Address = myRow["address"].ToString(); sql = "INSERT INTO Human (id,Name,Age,Address) VALUES ("+Id+",'"+Name+"',"+Age+",'"+Address+"')"; // Execute Sql Command command.CommandText = sql; command.ExecuteNonQuery(); }


网友评论