摘要:                    
IF OBJECT_ID('tempdb..#rootOrg') IS NOT NULL DROP TABLE #rootOrg; IF OBJECT_ID('tempdb..#t') IS NOT NULL DROP TABLE #t; DECLARE @tname VARCHAR(50); DE                阅读全文
            
        随笔档案-2020年12月
SQLSERVER初始化机构path
2020-12-18 09:53 by NO.27, 131 阅读, 收藏,
摘要:                    
代码如下: IF OBJECT_ID('tempdb..#testOU') IS NOT NULL DROP TABLE #testOU; WITH oulist as ( select CAST('0001' AS VARCHAR(max)) AS codes,a.* from dbo.Org a                阅读全文
            
        SqlServer判断表中某列是否包含中文,英文,纯数字
2020-12-02 10:27 by NO.27, 2160 阅读, 收藏,
摘要:                    
1、字段包含中文 select * from table1 where 列名 like '%[吖-座]%' 2.字段包含英文字符 select * from table1 where 列名 like '%[a-z]%' 3.字段包含纯数字 select * from table1 where 列名                 阅读全文
            
        
                    
                
浙公网安备 33010602011771号