Skip to Main Content

MySQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MySql Connectors and Parameterized Queries

800837f2-2c7e-4cda-b2c6-b08857b9ef12Feb 13 2016 — edited Feb 13 2016

In the documentation on MySQL Connectors the examples for setting parameters for parameterized queries look something like this, using an @ sign in the parameter name:

<xxx>.Parameters.AddWithValue("@Dummy", "Goofy");

Then in the query string you can have something like "SELECT * WHERE name=@Dummy

But for years now I have declared the parameter name without using the @ sign. My queries run just fine.

Is this fact documented anywhere? Is this going to blow up on me one day?

Bob

Comments

Post Details

Added on Feb 13 2016
0 comments
197 views