摘要: //加载protected void Page_Load(object sender, EventArgs e) { string filePath = Server.MapPath("~/xml/addressList.xml"); if (!Page.IsPostBack) { if (!File.Exists(filePath)) { CreteXml(); } else { ReadXml(); } } }//创建private void CreteXml() { string filePath = Server.MapPath("~/xml/addres 阅读全文
posted @ 2012-12-04 20:31 夏末丶拾忆 阅读(114) 评论(0) 推荐(0) 编辑
摘要: truncate --删除记录并删除自增http://www.w3school.com.cn/sql/sql_delete.asp 阅读全文
posted @ 2012-12-04 14:57 夏末丶拾忆 阅读(101) 评论(2) 推荐(0) 编辑
摘要: insert into tbName[(row1,row2...)] select val1,val2... union [all] select val1,val2... union [all] ....--union指定合并多个结果集并将其作为单个结果集返回。--all将全部行并入结果中。其中包括重复行。如果未指定该参数,则删除重复行。 阅读全文
posted @ 2012-12-04 13:25 夏末丶拾忆 阅读(100) 评论(0) 推荐(0) 编辑
摘要: --判断数据库是否存在if exists(select 1 from sys.databases where name='dbName') --存在--判断数据表是否存在if exists(select * from sys.objects where name ='tbName' ) --存在 阅读全文
posted @ 2012-12-04 12:09 夏末丶拾忆 阅读(106) 评论(0) 推荐(0) 编辑