Sql Server
良音
待续
展开
-
sqlserver 查询当日、当月数据
--查询当天: select * from info where DateDiff(dd,datetime,getdate())=0 --查询24小时内的: select * from info where DateDiff(hh,datetime,getDate())--本月记录 SELECT * FROM 表 WHERE da转载 2017-01-12 22:24:24 · 2716 阅读 · 0 评论 -
sqlserver数据库命名规范
数据库命名规范: 1. 数据库名: 1.1)用产品或项目的名字命名; 1.2)Pascal Case,如AdventureWork; 1.3)避免使用特殊字符,如数字,下划线,空格之类; 1.4)避免使用缩写 2. 表名 2.1)使用复数,Pascal Case转载 2017-08-03 10:07:41 · 1299 阅读 · 0 评论