English 中文(简体)
• 如何建立将由++使用的离线数据库
原标题:How to create offline database to be used with c++
  • 时间:2011-11-20 23:04:02
  •  标签:
  • c++

我已经看到了一些类似议题的问题,但我更是一个开端的问题。

I have already some experience with C++ and Microsoft Access but never came across how to actualy create or (if its not possible) than how to use an offline database similar to Access. For example:

MS Access有自己的表格......因此,我即将建立一个需要在线数据库的方案。

我认为,使用简单的txt文档不是正确的方式。 我的下一个选择是什么? 是否有其他所有方案者如何做到这一点? 或者,我是否只需要使用像我的SQL这样的一个数据库供应商?

问题回答

我认为一些人为此目的使用Qat。 我不知道这一点,但可以在这里学习更多东西:

>http://www.sqlite.org/about.html

如果是Microsoft的 st,那么你可能想尝试。 联合国

或者,你可能希望使用;SQLite;它不是如此融入微软生态系统,而是公开来源,而且广泛使用。

You can use the ODBC driver and link it with your database source file. Just read this: http://msdn.microsoft.com/en-us/library/ca6axakh%28v=vs.80%29.aspx

After setup your source use odbc api in your c++ code in order to make your queries. Also you can try to use ORM solutions in order to access your database. http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software

+1 for sqlite

如果你重新回答“实际上是,有兴趣做类似问询,请看看一下“Q”号。

参看这里的记忆-制图标准集装箱背后:

LevelDB vs. setd:map





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签