上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: string imgUrl = "http://www.scapex.cn/upload/201601/28/201601280915393586.jpg"; if (!string.IsNullOrEmpty(imgUrl)) { WebRequest webRequest = WebRequest.Creat... 阅读全文
posted @ 2016-04-12 09:32 落叶的瞬间; 阅读(1177) 评论(0) 推荐(0) 编辑
摘要: T-SQL语句用于管理SQL Server数据库引擎实例,创建和管理数据库对象,以及查询、插入、修改和删除数据。 Ø 变量 1、 局部变量(Local Variable) 局部变量是用户可以自定义的变量,它的作用范围是仅在程序内部,在程序中通常用来储存从表中查询到的数据或当做程序执行过程中的暂存变量。使用局部变量必须以@开头,而且必须用declare命令后才能... 阅读全文
posted @ 2016-04-11 10:31 落叶的瞬间; 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Ø Go批处理语句 用于同时执行多个语句 Ø 使用、切换数据库 use master go Ø 创建、删除数据库 方法1、 --判断是否存在该数据库,存在就删除 if (exists (select * from sys.databases where name = 'testHome')) drop database testHome go --创建数据库,设置数据库文件、日志... 阅读全文
posted @ 2016-04-11 10:31 落叶的瞬间; 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Transact-SQL中的存储过程,非常类似于Java语言中的方法,它可以重复调用。当存储过程执行一次后,可以将语句缓存中,这样下次执行的时候直接使用缓存中的语句。这样就可以提高存储过程的性能。 Ø 存储过程的概念 存储过程Procedure是一组为了完成特定功能的SQL语句集合,经编译后存储在数据库中,用户通过指定存储过程的名称并给出参数来执行。 存储过程中可以包含逻辑... 阅读全文
posted @ 2016-04-11 10:28 落叶的瞬间; 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 基本常用查询 --select select * from student; --all 查询所有 select all sex from student; --distinct 过滤重复 select distinct sex from student; --count 统计 select count(*) from student; select count(sex) from ... 阅读全文
posted @ 2016-04-11 10:27 落叶的瞬间; 阅读(202) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-04-05 15:12 落叶的瞬间; 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1.新建MVC项目 2.找到Models文件夹,新建 LoginCheckFilterAttribute 类 1 public class LoginCheckFilterAttribute : ActionFilterAttribute 2 { 3 public bool IsCheck { ge 阅读全文
posted @ 2016-04-05 11:36 落叶的瞬间; 阅读(391) 评论(0) 推荐(1) 编辑
摘要: 1 public static bool IsTelephone(string strTelephone) 2 { 3 return Regex.IsMatch(strTelephone, "^1\\d{10}$"); 4 } 一、正则表达式(regular expression简称res) 1、定 阅读全文
posted @ 2016-03-30 10:45 落叶的瞬间; 阅读(264) 评论(0) 推荐(0) 编辑
摘要: WebAPI 只使用JSON格式响应 使用方式http://localhost:8081/api/home?$format=jsonhttp://localhost:8081/api/home?$format=xml 参考资料:https://code.msdn.microsoft.com/Supp 阅读全文
posted @ 2016-03-30 10:28 落叶的瞬间; 阅读(464) 评论(0) 推荐(0) 编辑
摘要: Common 1 public interface ICacheWriter 2 { 3 void AddCache(string key, object value, DateTime expDate); 4 void AddCache(string key, object value); 5 o 阅读全文
posted @ 2016-03-29 16:17 落叶的瞬间; 阅读(748) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页