判断数据库是否存在
if exists (select * from sys.databases where name = '数据库名')
drop database [数据库名]
判断表是否存在
if exists (select * from sysobjects where id = object_id(N'[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [表名]
判断存储过程是否存在
if exists (select * from sysobjects where id = object_id(N'[存储过程名]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [存储过程名]
判断函数是否存在
IF OBJECT_ID (N'函数名') IS NOT NULL
DROP FUNCTION dnt_split
判断数据库是否开启了全文搜索
select databaseproperty('数据库名','isfulltextenabled')
判断全文目录是否存在
select * from sysfulltextcatalogs where name ='全文目录名称'
SQL将A表的信息附加给B表
insert into B(Fs,nr1,ids) select Fs,nr1,ids from A
FS、nr1、ids:字段名
当A表信息少于B的时候= =比如A无 nr1 字段时:
insert into B(Fs,nr1,ids) select Fs,北京大学,ids from A
内存级的缓存实际上引用
Vs 2013 单步调试 .net framework 中遇到的问题
Win7总是显示“软件应用无法兼容”的解决方法
Win10系统文件受损怎么办
教你win10系统如何一键修复系统
Win10专业版如何提升游戏流畅度
win7电脑任务管理器被停用如何解决
win7系统移动硬盘打不开解决方法
Java之集合(五)LinkedList
Copyright © 2011-2022 走看看