摘要
目前,数据库在各行各业中广泛应用.在众多商业数据库软件中,SQL SERVER和ORACLE被较多的使用,因此这两个数据库软件的价格也较昂贵.本文主要介绍MySQL数据库在单线程或多线程程序环境下使用C API访问MySQL数据库方法,并给出了相应代码和分析.该数据库属于开源数据库,具有较高的成熟度,并且对于社区版本可以免费使用,因此对于需要使用C API访问数据库的项目开发,可降低开发成本.
Currently,the database in all walks of life were widely used.In many commercial database software,SQL Server and Oracle are used more and therefore their prices are more expensive.This paper describes the MySQL database in single-threaded or multi-threaded programming environment using C API access to the MySQL database,and gives the corresponding code and analysis.The database is open source database,with a higher maturity level,and the community version can be used for free.It satisfies the need to use the C API access to the database of project development,and reduces development costs.
出处
《电脑知识与技术(过刊)》
2007年第16期904-905,共2页
Computer Knowledge and Technology