create database itcast_oa default character set utf8;----创建数据库 create user itcastoa identified by '1234';-----创建用户 grant all on itcast_oa.* to itcastoa;-----为用户授权
DateDiff(day,b.testtime,getdate()) < 7 当前时间和数据库中的时间字段做比较