岁月总是愈来愈短 日子也总是愈来愈快 珍惜
Database
SQL2005 自动备份数据库且保存为 时间.BAK
十一 1st
首先开启Agent服务
找到管理的维护计划
输入计划名称 在按确定
DECLARE @strPath NVARCHAR(200) set @strPath = convert(NVARCHAR(19),getdate(),120) set @strPath = REPLACE(@strPath, ':' , '-') set @strPath = 'F:\' + @strPath + '.bak' BACKUP DATABASE [AhlanStock] TO DISK = @strPath WITH NOINIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT
SQL Server , MySQL 随机查询示例
六 12th
SQL Server: Select TOP 10 * From oa_xmgl where create_by = 'admin' Order By NewID() MySql: Select * From oa_xmgl Order By Rand() Limit 10