string username=""; //username string
string useremaipart=""; //email string
// for selecting username's
-->select username from table1 where username like'%" + username+ "%'
// for selecting emailid's
-->select username from table1 where SUBSTRING(email,1,CHARINDEX('@',email)-1) like'%" + useremaipart+ "%'
Wednesday, June 24, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment