01 2013 档案

 
SQL Server设置主键自增长列
摘要:1.新建一数据表,里面有字段id,将id设为为主键create table tb(id int,constraint pkid primary key (id))create table tb(id int primary key )2.新建一数据表,里面有字段id,将id设为主键且自动编号create table tb(id int identity(1,1),constraint pkid primary key (id))create table tb(id int identity(1,1) primary key )3.已经建好一数据表,里面有字段id,将id设为主键alter ta 阅读全文
posted @ 2013-01-24 16:00 柒夏ing 阅读(18511) 评论(2) 推荐(0)
C# 根据IP获取省市
摘要:/// <summary> /// 得到真实IP以及所在地详细信息(Porschev) /// </summary> /// <returns></returns> public string GetIpDetails() { //设置获取IP地址和国家源码的网址 string url = "http://www.ip138.com/ips8.asp"; string regStr = "(?<=<td\\s*align=\\\"center\\\">)[^<]*?(?=& 阅读全文
posted @ 2013-01-05 10:59 柒夏ing 阅读(4625) 评论(0) 推荐(0)