Avatar of Focker513
Focker513
Flag 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!
.NET ProgrammingOracle Database

Avatar of undefined
Last Comment
Focker513

8/22/2022 - Mon
Walter Ritzel

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

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Focker513

ASKER
That was my hunch as well.
Thanks for confirming.
Your help has saved me hundreds of hours of internet surfing.
fblack61