E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
OBJECT_ID
SQL加密
use Tempdb go if
object_ID
( ' fn_ACITEncryption
·
2015-10-31 11:54
sql
SQL Server 2005's new feature "table and index partitioning"
constraints on TransactionHistory to allow table to be droppedIF EXISTS (SELECT * FROM sys.foreign_keys WHERE
object_id
·
2015-10-31 11:54
sql server 2005
如何修改数据库表或存储过程的所有者
--批量修改数据库对象的所有者 新建一个存储过程:changename if exists (select * from dbo.sysobjects where id =
object_id
(
·
2015-10-31 11:25
存储过程
创建作业的通用存储过程
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:16
存储过程
sqlserver分隔字符串
EXISTS ( SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID
·
2015-10-31 11:41
sqlserver
视图的创建、修改
1 if
OBJECT_ID
('Sales.USACusts') is not null 2 drop view Sales.USACusts; 3 go 4 5 create
·
2015-10-31 11:40
视图
生成查询的模糊匹配字符串.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:03
sql
获得数据库中表字段的名字.txt
select name from sysobjects where type='U' 获得某个表中字段的名字:select name from syscolumns where id=
object_id
·
2015-10-31 11:00
数据库
比较第一与第二个字符串,是否有连续的5个字符相同.sql
--比较第一与第二个字符串,是否有连续的5个字符相同,如果有,返回1,否则返回0 if exists (select * from dbo.sysobjects where id =
object_id
·
2015-10-31 11:56
sql
varbinary转换成字符串.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:56
binary
得到一个字符串在另一个字符串中出现的次数.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:56
sql
工作日处理函数(自定义节假日).sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[tb_Holiday]') and OBJECTPROPERTY(id,
·
2015-10-31 11:55
sql
工作日处理函数(标准节假日).sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:55
sql
生成日期列表的函数.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:55
sql
特殊日期加减函数.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:55
sql
分段更新函数.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:55
sql
分段截取函数.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:55
sql
字符串比较函数.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:55
sql
任意两个时间之间的星期几的次数-纵.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:53
sql
任意两个时间之间的星期几的次数-横.sql
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 11:53
sql
SQL简体转繁体互换(常用汉字词组)
--生成码表if exists (select * from dbo.sysobjects where id =
object_id
(N'[codetable]') and OBJECTPROPERTY
·
2015-10-31 11:30
sql
类似详情表里面查询最后一次下的订单(以下示例是查找最近一次登陆的记录)
--表结构: if exists (select * from sysobjects where id =
OBJECT_ID
('[表1]') and OBJECTPROPERTY(id,
·
2015-10-31 11:09
查询
SQL Server 触发器
if ((
object_id
('tgr_valid_data', 'TR') is not null)) drop trigger tgr_valid_data go create trigger
·
2015-10-31 11:16
SQL Server
SQL笔记 [SQL判断是否存在] [长期更新] (-2015.4)
--判断某个存储过程是否存在if exists (select * from sysobjects where id =
object_id
(N'[p_CreateTable]') and
·
2015-10-31 11:12
sql
sql 游标简单使用(判断临时表是否存在)
IF
OBJECT_ID
('tempdb..
·
2015-10-31 11:16
sql
sql2000和文本文件的写入和读取
exists (select * from dbo.sysobjects where id =
object_id
·
2015-10-31 11:03
sql2000
SQL 查询语句
-- 该表所有列名 SELECT name FROM syscolumns WHERE id =
object_id
('表名') -- 该表所有列名,数据类型,长度 SELECT
·
2015-10-31 11:52
sql
查询数据库已存在的索引
[
object_id
], TableName=O.Name, IndexId=ISNULL(KC.
·
2015-10-31 11:49
数据库
无限增长的Tree-----查找
数据表设计: IF
OBJECT_ID
('dbo.WapClass') IS NOT NULL DROP TABLE dbo.WapClassGO CREATE TABLE
·
2015-10-31 11:50
tree
在sql2000中如何实现ROW_NUMBER函数的效果
if
object_id
('tempdb.dbo.#') is not null drop table #create table #(Dept varchar(8), Inv varchar(8),
·
2015-10-31 10:48
row_number
MSSQLSERVER数据库- 判断全局临时表是否存在
if exists (select * from tempdb.dbo.sysobjects where id =
object_id
(N'[##temp]')) Begin
·
2015-10-31 10:59
sqlserver
还原sql server数据库时,无法获得对数据库的独占访问权
查询分析器中,用下面的代码来处理 /* 断开所有用户打开的连接 */ use master go if exists (select * from dbo.sysobjects where id =
object_id
·
2015-10-31 10:15
SQL Server
经典SQL语句
新建一个与a表一样的空的b表select * into bfrom a where 1<>1 3、列出表里的所有的字段select name from syscolumns where id=
object_id
·
2015-10-31 10:34
sql语句
sql语句查询表的字段名
id from sysobjects where type = 'u' and name = '相应表名') 或者 select name from syscolumns where id =
object_id
·
2015-10-31 10:09
sql语句
insert/process multi-records without cursor
if
object_id
('Pr_ToSolver_ds_in_item_group_loc_period') is not null drop proc Pr_ToSolver_ds_in_item_group_loc_period
·
2015-10-31 10:15
process
how to judge if the temptable or normal table that you created exists
: 1.temp table if exists (select * from sysobjects where objectproperty(
object_id
·
2015-10-31 10:15
create
get all table's information concerned
1 get all columnname select [name] from syscolums where id=
object_id
('tablename
·
2015-10-31 10:14
format
数据库开发-批量附加数据库
nbsp;'c:\program files\microsoft sql server\data' if
object_id
·
2015-10-31 10:10
数据库
获得汉字字符串的首字母(T-SQL函数)
/*--获得汉字字符串的首字母--*/ if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 10:51
t-sql
使用显式事务
use TEMPDBIF
OBJECT_ID
(N't2', N'U') IS NOT NULL DROP TABLE t2;GOIF
OBJECT_ID
(N't1',
·
2015-10-31 10:55
事务
判断SQL Server的计算列
目的:需要将一个计算列改成非计算列 if columnproperty(
object_id
('test'),'TotalPrice',N'IsComputed'
·
2015-10-31 10:51
SQL Server
存储过程递归实现
if exists (select * from dbo.sysobjects where id =
object_id
(N'[dbo].
·
2015-10-31 10:30
存储过程
SqlServer查看死锁的存储过程
nbsp; EXISTS ( SELECT * FROM dbo.sysobjects WHERE id =
object_id
·
2015-10-31 10:53
sqlserver
SQL 年龄段 品牌分类 分组统计
-- > 测试数据:[tb] if
object_id
( ' [tb] ' ) is not null drop
·
2015-10-31 10:42
sql
近期价格处于降价趋势(至少调了3次)的所有商品
-- 近期价格处于降价趋势(至少调了3次)的所有商品 if
object_id
( ' [tb] ' ) is not null drop
·
2015-10-31 10:40
统计交叉相等两列元祖的次数 去掉重复
-- 统计交叉相等两列元祖的次数 去掉重复 if
object_id
( ' [tb] ' ) is not null drop
·
2015-10-31 10:40
统计
求每天的收入和支出
if
object_id
('[tb]') is not null drop table [tb] go create table
·
2015-10-31 10:40
master.dbo.spt_values
-- 统计某月份周情况 没有的补0 if
object_id
( ' temp_tb ' ) is not null
·
2015-10-31 10:39
master
sqlserver中判断表或临时表是否存在
1、判断数据表是否存在 方法一: use yourdb;go if
object_id
(N'tablename',N'U') is not nullprint '存在'else print '
·
2015-10-31 10:53
sqlserver
识别低效率的SQL语句
1.返回行与逻辑读的比率 CREATE TABLE t as select * from dba_objects; --CREATE INDEX idx ON t (
object_id
);
·
2015-10-31 10:19
sql语句
上一页
13
14
15
16
17
18
19
20
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他