This article is a mirror article of machine translation, please click here to jump to the original article.

View: 56091|Reply: 2

[Source] MySQL Learning Notes' MySQL Parameter

[Copy link]
Posted on 12/3/2018 6:01:15 PM | | |
When operating a database in .net.

Everyone likes to use sqlparameters.

Parameters are precompiled to speed up and inject proof.

Use sqlparameter when using mssql.

Use mysqlparameters when using mysql.

When using mysql for the first time, I often make a mistake

For example, when using mssql, a query is written like this


When using mysql, the query statement must be like this

SQL Server became @

mysql became?


Oracle species become:

Similarly, at what parameter

mssql is like this


MySQL is like this

There is also when specifying the parameter type
MySqlDbType does not have nchar...

Of course, Access is also different, it is nothing more than the difference in symbols, and the rest is not much different.

The above is my summary. Personal experience, share with everyone.





Previous:Unable to cast to [B]MySql.Data.MySqlClient.MySqlConnection
Next:< goal is to become a Pokémon Master -20th Anniversary- > album [Hi-Res]
 Landlord| Posted on 5/18/2021 6:25:42 PM |
C# Parameterized Parameters uses sp_executesql to execute sql statements
https://www.itsvse.com/thread-3111-1-1.html

 Landlord| Posted on 11/13/2022 3:38:42 PM |
MySQL is inserted into the database

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com