About
Pricing
Community
Teams
Start Free Trial
Log in
Focker513
asked on
3/14/2012
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 Programming
Oracle Database
3
1
Last Comment
Focker513
8/22/2022 - Mon
Walter Ritzel
3/14/2012
In this case, you should use the .NET C# syntax for that, which is the {0} if I remember correctly...
ASKER CERTIFIED SOLUTION
kaufmed
3/14/2012
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
3/14/2012
ASKER
That was my hunch as well.
Thanks for confirming.
Your help has saved me hundreds of hours of internet surfing.
fblack61