今天 学会了使用sql中的charindex 函数
charindex返回了一个字符或者字符串在另一个字符串中的起始位置
CHARINDEX ( expression1 , expression2 [ , start_location ] ),
Expression1是要到expression2中寻找的字符中,start_location是CHARINDEX函数开始在expression2中找expression1的位置。
select * from Admin where charindex(',4,',','+Adminrole+',')>0
patindex加通配符
patindex('%cb%','abcdefgh')
C# ref out 关键字 区别
ref有进有出
out只出不进