SQLServer 查看SQL语句的执行时间 在MSSQL Server中通过查看SQL语句执行所用的时间,来衡量SQL语句的性能。 通过设置STATISTICS我们可以查看执行SQL时的系统情况。选项有PROFILE,IO ,TIME。介绍如下: SET STATISTICS PROFILE ON ...
分类:
数据库 时间:
2020-02-05 15:07:54
阅读次数:
106
whereSql := 'substr(f_billNumber,1,4)=' + QuotedStr(yymm) else whereSql := 'left(f_billNumber,4)=' + QuotedStr(yymm); near syntax errorinsert into [t_ ...
分类:
数据库 时间:
2020-02-05 11:52:01
阅读次数:
122
多语句表值函数顾名思义是返回了一张表,可以传入多个参数 1.定义 1 Use AdventureWorks2014; 2 go 3 if exists(select * from sys.objects where name='udf_SEL_SalesQuota') 4 drop function ...
分类:
数据库 时间:
2020-02-02 19:37:49
阅读次数:
267
标量函数用于传入多个参数返回一个结果 1.定义 1 use AdventureWorks2014; 2 go 3 if exists(select * from sys.objects where name='udf_GET_AssignedEquipment') 4 drop function d ...
分类:
数据库 时间:
2020-02-02 15:55:54
阅读次数:
94
mssql端口号:1433 判断是否又注入: and 1=1 and 1=2 判断是否为mssql and user>0 判断数据库库系统 and(select count(*) from sysobjects)>0 mssql and (select count(*) from msysobjec ...
分类:
数据库 时间:
2020-02-01 16:11:40
阅读次数:
74
今天在删除一个数据库时,一直报错,大意是:此数据库处理单用户模式,尚在连接当中,无法删除(既使将SQLServer停止后再启动也是如此) 百度之后找到了解决办法,备份于此: USE [master] GO / Object: StoredProcedure [dbo].[killspid] Scri ...
分类:
数据库 时间:
2020-02-01 12:51:09
阅读次数:
96
1、Hibernate技术连接MySQL数据 User.hbm.xml 配置文件 <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http:/ ...
分类:
数据库 时间:
2020-01-30 23:03:57
阅读次数:
94
1.完全备份 mssql_backup.sh #!/bin/bashcurrent_time=$(date "+%Y%m%d-%H%M%S")backup_dir='/cygdrive/d/backup/'backup_zip_dir='/cygdrive/d/backup/Archive/'bac ...
分类:
数据库 时间:
2020-01-30 12:33:29
阅读次数:
135
<add name="SQLServer" connectionString="Data Source=.;Initial Catalog=Stock;Persist Security Info=True;User ID=sa;Password=666666;Pooling=true; MAX Po ...
分类:
数据库 时间:
2020-01-29 10:39:40
阅读次数:
112
1.https://juejin.im/post/5c67be206fb9a049b13ebdbe 2.https://zhuanlan.zhihu.com/p/23624390 3.https://www.jianshu.com/p/417521e459df ...
分类:
数据库 时间:
2020-01-25 23:36:11
阅读次数:
83