判断数据库是否存在
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
Linux上天之路(十六)之Shell编程一
Linux上天之路(十五)之文件查找
Elasticsearch搜索调优权威指南 (1/3)
【大数据】SparkSql 连接查询中的谓词下推处理 (二)
【大数据】SparkSql 连接查询中的谓词下推处理 (一)
搜索和其他机器学习问题有什么不同?
Searching with Deep Learning 深度学习的搜索应用
翻译 | The Principles of OOD 面向对象设计原则
400+节点的 Elasticsearch 集群运维
Copyright © 2020-2023
润新知