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
sysobjects
工作日处理函数(标准节假日).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
查询
在数据库中改变对象的所有者
查出不是dbo的所有对象 select
sysobjects
.name,sysusers.name from
sysobjects
,sysusers where sysusers.uid=
sysobjects
.uid
·
2015-10-31 11:32
数据库
如何配置监控表MonTables来实现ASE的监控功能
我们可以像查询其他系统表(比如
sysobjects
、 sysindexes、syscolumns等)一样来查询这些监控表MonTables。 在12.x版本中MD
·
2015-10-31 11:36
table
SQL導入導出存儲過程--File2Table
1 if exists ( select 1 from
sysobjects
where name
·
2015-10-31 11:02
table
清空數據庫表腳本
use 你要清空的數據庫 go declare @tbname varchar(250) declare #tb cursor for select name from
sysobjects
where
·
2015-10-31 11:02
表
SQL Server 获取表或视图结构信息
获取表或视图的结构信息(ObjName:表名或视图名) Select o.name as Oname,c.name As name , t.name As type,c.Length As tlength From
SysObjects
·
2015-10-31 11:54
SQL Server
查询数据库里面的所有的表名
select name from
sysobjects
where xtype='TR' --所有触发器 select name from
sysobjects
·
2015-10-31 11:52
数据库
SQL笔记 [SQL判断是否存在] [长期更新] (-2015.4)
--判断某个存储过程是否存在if exists (select * from
sysobjects
where id = object_id(N'[p_CreateTable]') and
·
2015-10-31 11:12
sql
游标的使用
Pr_DeleteTable as declare @Table varchar(20) declare cr_cursor cursor --1.定义游标 for select name from dbo.
sysobjects
·
2015-10-31 11:48
游标
sql 游标简单使用(判断临时表是否存在)
DROP TABLE #tmpselect * into #tmp from (select ('select * from ' +name) as 'name' from
sysobjects
·
2015-10-31 11:16
sql
sql2000和文本文件的写入和读取
BCP工具,BULK INSERT 等 发表者:search_you if exists (select * from dbo.
sysobjects
·
2015-10-31 11:03
sql2000
“LIKE %@name%” 解决办法
USE master GO drop proc myprocgo//写存储过程CREATE PROCEDURE myproc @name VARCHAR(20)AS SELECT * FROM
sysobjects
·
2015-10-31 11:50
like
MsSQL 语句
MSSQL判断表是否存在及字段是否存在 判断表是否存在IF EXISTS (SELECT * FROM
sysobjects
WHERE name = 't_dispatchBill_entry
·
2015-10-31 11:28
MSSQL
SQLServer 删除所有表的外键约束
cursor for select 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; ' from
sysobjects
·
2015-10-31 10:40
sqlserver
SQLServer 删除所有表和删除所有存储过程
1、删除所有表 use 数据库declare @tname varchar(8000)set @tname=''select @tname=@tname + Name + ',' from
sysobjects
·
2015-10-31 10:40
sqlserver
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
·
2015-10-31 10:15
SQL Server
SQL批量删除用户表(先删除所有外键约束,再删除所有表)
'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; ' from
sysobjects
·
2015-10-31 10:13
sql
SQL如何查询对应的object
select b.name from syscomments a,
sysobjects
·
2015-10-31 10:18
object
经典SQL语句
1、列出数据库里所有的表名select name from
sysobjects
where type='U' 2、新建一个与a表一样的空的b表select * into bfrom a where
·
2015-10-31 10:34
sql语句
mssql 查询全部用户创建表 条数及占用空间大小(KB)
--表名a.rowcnt as datacount, --条数rtrim(8*a.dpages) as size --占用空间单位KBfrom sysindexes a ,
sysobjects
·
2015-10-31 10:09
MSSQL
sql语句查询表的字段名
select name from syscolumns where id = (select id from
sysobjects
where type = 'u' and name = '相应表名')
·
2015-10-31 10:09
sql语句
how to judge if the temptable or normal table that you created exists
just as the following scripts shows: 1.temp table if exists (select * from
sysobjects
·
2015-10-31 10:15
create
get all table's information concerned
from syscolums where id=object_id('tablename) 2 get all tables select [name] from
SysObjects
·
2015-10-31 10:14
format
exec与sp_executesql语法的区别详解
动态语句语法: --方法1查询表改为动态 select * from
sysobjects
exec('select ID,Name from
sysobjects
') exec sp_executesql
·
2015-10-31 10:03
execute
获得汉字字符串的首字母(T-SQL函数)
/*--获得汉字字符串的首字母--*/ if exists (select * from dbo.
sysobjects
where id = object_id(N'[dbo].
·
2015-10-31 10:51
t-sql
sqlserver显示数据库和表及列名
解决中文问题 select * from master.dbo.sysdatabases where dbid>4//显示所有的用户数据库 select name from DB_NAME..
sysobjects
·
2015-10-31 10:24
sqlserver
转 如何从sql数据库中获取表的列信息
sqlserver数据库中,执行下面语句,即可获取所有表的列基本信息 select A.name '表名',B.name '列名',B.colid '列号' from
sysobjects
A inner
·
2015-10-31 10:15
sql
删除用reference建立的外键
建立的外键名字不确定,故用以下方法: DECLARE @name VARCHAR(100) SELECT @name =NAME FROM dbo.
sysobjects
·
2015-10-31 10:48
reference
存储过程递归实现
if exists (select * from dbo.
sysobjects
where id = object_id(N'[dbo].
·
2015-10-31 10:30
存储过程
SqlServer查看死锁的存储过程
IF EXISTS ( SELECT * FROM dbo.
sysobjects
WHERE id = 
·
2015-10-31 10:53
sqlserver
解决并清除SQL被注入