declare @s nvarchar(3) set @s = 'C%' ; -- 必须加分号with t_tree as ( select CountryRegionCode from person.CountryRegion where Name like @s ) select * from person.StateProvince where CountryRegionCode in (select * from t_tree) declare @a intbegin set @a=(s…
@echo off dir d:\dddddd if errorlevel 1 goto 1 if errorlevel 0 goto 0 rem 两行if语句不可交换位置,否则失败了也会显示成功. :0 echo 命令执行成功 goto exit :1 echo 命令执行失败 goto exit :exit pause if ERRORLEVEL…
@echo off rem 进入批处理文件所在的路径 cd C:\Users\zxh\Desktop\ " as "abc" ***** rem 定义要替换的新旧字符串 set strOld= set strNew=abc rem 定义变量修改本地化延期 setlocal enabledelayedexpansion rem 循环取出要处理的文件名 for /f "tokens=*" %%i in ('dir C:\Users\zxh\Desktop\12…