日期:2014-05-20 浏览次数:20814 次
var tab = from x in db.tbl_Users where System.Data.Linq.SqlClient.SqlMethods.Like( x.uname, "%" + textBox1.Text ) orderby x.ID select x;
declare @S1 as nvarchar(100) set @S1='1' select * from dbo.tbl_Users u where u.uname like '%'+@S1