A MySQL c api (mysql connector / c) (relatively outdated)
Two MySQL connector / c ++ api (based on jbdc, jbdc api implementation in c ++, implements most of jbdc specifications, similar in use)
Both of these are installed automatically with MySQL installed
Three (ado) odbc method, (odbc technology is gradually replaced by jbdc)
jbdc is a Java API for executing SQL statements (for Java)
jdbc has developed a standard interface for accessing various relational databases, which is suitable for databases of various manufacturers. Of course, it also depends on the jdbc driver provided by the manufacturer (such as mysql connector / j)
Four methods of using MySQL
There are header files for operating SQL in qt, and there are classes for operating databases (you can operate various databases)
The APIs in these four are different. C ++ recommends learning the latest mysql connector / c ++, based on jdbc.
If you use qt, use the API in qt. For the method of connecting qt to mysql, see the next blog https://blog.csdn.net/sinat_41852207/article/details/86709678