daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Oct 20th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string SqlQry = "SELECT [Name] FROM [Table] WHERE [Column 2] = @1 OR [Column 3] = @2 OR [Column 4] = @3 AND [Region] = @4 AND [Type] = @5 ORDER BY [Name] ASC";
  2.  
  3.                 cmd.Parameters.AddWithValue("@1", Combobox1.SelectedItem);
  4.                 cmd.Parameters.AddWithValue("@2", Combobox1.SelectedItem);
  5.                 cmd.Parameters.AddWithValue("@3", Combobox1.SelectedItem);
  6.                 cmd.Parameters.AddWithValue("@4", "Italy");
  7.                 cmd.Parameters.AddWithValue("@5", "Bus");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top