使用C语言最容易使用哪个数据库?

时间:2022-07-12 12:52:32

I have a project to be made on "college counseling and admission" in C language and I'm confused whether to choose a database or the file management system in C for the data. As I have no prior knowledge of connecting C with any of the databases around and also because I find the file handling in C some what difficult.

我有一个关于C语言的“大学咨询与录取”的项目,我不知道是选择C语言的数据库还是文件管理系统来做数据。由于我之前没有关于C和任何数据库的连接的知识,也因为我在C中找到了文件处理,有些困难。

What would you recommend?

你有什么建议?

2 个解决方案

#1


2  

MYSQL has a pretty good and easy interface to be used with c.

MYSQL有一个很好的简单的接口,可以与c一起使用。

You can write basic operations in 30-40 lines of c code.

您可以用30-40行c代码编写基本操作。

File handling will not scale and would be difficult once you change your file structure and info. With a database you can keep changing your info logically by adding new tables and still reuse most of the code by just adding new table names.

文件处理不会扩展,一旦你改变了文件结构和信息,就会变得很困难。使用数据库,您可以通过添加新表来保持信息的逻辑变化,还可以通过添加新表名来重用大部分代码。

mysql tutorial c in linux environment

linux环境中的mysql教程c

#2


1  

I would use a .plist file and implement it into a UITableView using the .h and .m files. That is the easiest, most simple way to do it. You can keep adding rows to your plist file without having to also code the changes too!

我将使用.plist文件并使用.h和.m文件将其实现为UITableView。这是最简单的方法。您可以将行添加到您的plist文件中,而不必对更改进行编码!

Let me know if you have a better idea!

如果你有更好的主意,请告诉我!

#1


2  

MYSQL has a pretty good and easy interface to be used with c.

MYSQL有一个很好的简单的接口,可以与c一起使用。

You can write basic operations in 30-40 lines of c code.

您可以用30-40行c代码编写基本操作。

File handling will not scale and would be difficult once you change your file structure and info. With a database you can keep changing your info logically by adding new tables and still reuse most of the code by just adding new table names.

文件处理不会扩展,一旦你改变了文件结构和信息,就会变得很困难。使用数据库,您可以通过添加新表来保持信息的逻辑变化,还可以通过添加新表名来重用大部分代码。

mysql tutorial c in linux environment

linux环境中的mysql教程c

#2


1  

I would use a .plist file and implement it into a UITableView using the .h and .m files. That is the easiest, most simple way to do it. You can keep adding rows to your plist file without having to also code the changes too!

我将使用.plist文件并使用.h和.m文件将其实现为UITableView。这是最简单的方法。您可以将行添加到您的plist文件中,而不必对更改进行编码!

Let me know if you have a better idea!

如果你有更好的主意,请告诉我!