sql
⑧o年崋
很少写博客,偶尔记录工作中的问题及一些通用方法
展开
-
sql server 删除表及表字段注释
IF EXISTS ( SELECT 1 FROM sys.objects WHERE name = 'P_DeleteDscirption' AND type = 'p' ) BEGIN DROP PROCEDURE P_DeleteDscirption ENDGOCREATE PROCEDURE P_DeleteDscirptionAS BEGIN原创 2021-12-26 17:36:01 · 693 阅读 · 1 评论 -
SQL Server 中树形表数据
-- 使用函数的方法:--建立 演示环境if object_id('tb_bookInfo') is not null drop table tb_bookInfogocreate table tb_bookInfo(number int,name varchar(10),type int)insert tb_bookInfoselect 1 ,'n1', 6 union allselect 2 ,'n2', 3if object_id('tb_bookType') is not n转载 2020-08-28 16:42:49 · 463 阅读 · 0 评论