摘要:
Ø Go批处理语句 用于同时执行多个语句 Ø 使用、切换数据库 use master go Ø 创建、删除数据库 方法1、 --判断是否存在该数据库,存在就删除 if (exists (select * from sys.databases where name = 'testHome')) drop database testHome go --创建数据库,设置数据库文件、日志... 阅读全文
摘要:
基本常用查询 --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 ... 阅读全文
摘要:
1.新建MVC项目 2.找到Models文件夹,新建 LoginCheckFilterAttribute 类 1 public class LoginCheckFilterAttribute : ActionFilterAttribute 2 { 3 public bool IsCheck { ge 阅读全文