摘要:
今天距离2008年多少天,多少年 select datediff(dd,'2008',getdate()); select datediff(yy,'2008',getdate()); 返回表示指定日期中的年份的整数 sqlServer:select YEAR/MOUNTH/DAY ( date ) 阅读全文
摘要:
@@identity 最近一次向具有identity(自增列)的表中插值的id值 @@一般表示系统定义的全局变量 @表示用户自定义变量 使用前提:在insert into后数据库连接没有关闭,否则返回null 阅读全文