一些 T SQL 技巧

littlebirdfrancis 10 0 PDF 2020-12-23 05:12:19

一、 只复制一个表结构,不复制数据 select top 0 * into [t1] from [t2] 二、 获取数据库中某个对象的创建脚本 1、 先用下面的脚本创建一个函数 if exists(select 1 from sysobjects where id=object_id(‘fgetscript’) and objectproperty(id,’IsInlineFunction’)=0) drop function fgetscript go create function fgetscript( @servern

用户评论
请输入评论内容
评分:
暂无评论