标签:
1.求表中某列的和,并把其值赋给一个变量:
SqlCommand cmd = new SqlCommand( "select sum(aa) from table ", conn); Int32 aa= (Int32) cmd.ExecuteScalar();
select * from hr_user where isnumeric(usid)=1//为数字 select * from hr_user where isnumeric(usid)=0//不为数字
select * from Rex_Test3 where charindex('R',UserName)>0
select * from Rex_Test3 where charindex('R',UserName)=0
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/yangmingxing980/article/details/47165219