Link to home
Create AccountLog in
Avatar of Focker513
Focker513Flag for United States of America

asked on

Equivalent to bind variables

Does the {} syntax denote bind variables ?

_queryString = String.Format("select * from table m " +
                               "WHERE m.col IN " +
                                    "('{0}',  '{1}' )"  +
                                   ,param1, param2);

       Or should I use the typical : operator --> where m.col IN (:param1, :param2);

Thanks!
Avatar of Walter Ritzel
Walter Ritzel
Flag of Brazil image

In this case, you should use the .NET C# syntax for that, which is the {0} if I remember correctly...
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Focker513

ASKER

That was my hunch as well.
Thanks for confirming.