将数据添加到访问数据库! [英] Add data into a access database!

查看:100
本文介绍了将数据添加到访问数据库!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我创建了一个访问数据库,现在我想使用C#向其中添加一些数据,但是当我关闭应用程序时,我的数据就消失了!

现在如何使用C#将数据固定到数据库中!
例如,我有一些名字,例如:Name:
-----
柯克
莫森
约翰

现在我想将名称"Amir"添加到数据库的名称中,然后将其查找到我的字段中...

帮帮我吧!

谢谢...

Hi...
I created an access database and now I want to add some data into it using C# but when I close my app,my data gone!

Now How can I stanch my data into database using C#!!!

for example I have some name like: Name:
-----
kirk
mohsen
john

now I want add the name "Amir" into name in database and I want to look it into my field...

help me!

thanks...

推荐答案

您在哪里有数据库:在项目文件夹中?
如果是,请将数据库移到另一个文件夹.

顺便说一句:Name是MS Access中的保留字.切勿将其用作列的名称.

有关保留字的更多信息,请访问:
http://support.microsoft.com/kb/286335 [ http://office.microsoft.com/zh-cn/access-help/access-2007-reserved-words-and-symbols-HA010030643.aspx [
Where do you have your database: in the project folder?
If yes, move your database in to another folder.

BTW: Name is a reserved word in MS Access. Never use it as the name of column.

More about reserved words at:
http://support.microsoft.com/kb/286335[^]
http://office.microsoft.com/en-us/access-help/access-2007-reserved-words-and-symbols-HA010030643.aspx[^]


这篇关于将数据添加到访问数据库!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆