Viewing 3 posts - 1 through 3 (of 3 total)
http://www.sql-ex.ru/learn_exercises.php#answer_ref
something like this, but a little more complicated 🙂
April 1, 2013 at 4:10 am
#1602407
thank you guys, but this is still too complicated for me
April 1, 2013 at 2:05 am
#1602392
Thanks!
It's like this in C#.
SqlCommand cmd = new SqlCommand("SELECT * FROM accounts WHERE (id=@id2 OR @id2 is null) AND (name=@name2 or @name2 is null) AND (last_name=@last_name2 or @last_name2 is null)",con);
if...
November 12, 2012 at 1:37 am
#1558045