简体   繁体   English

将数据添加到MySQL数据库

[英]Adding data to a MySQL database

I am a programmer using VS2012 Ultimate edition, Visual Basic.NET, and have a question about adding records to a database. 我是使用VS2012 Ultimate Edition,Visual Basic.NET的程序员,并且有关于向数据库添加记录的问题。

I see that there are two main ways to do this: An SQL statement and DDA. 我看到有两种主要方法:SQL语句和DDA。

Here is a link that shows both ways to add records to a database: 这是一个链接,显示了向数据库添加记录的两种方法:

http://www.vistadb.net/tutorials/insertrows-vb.aspx http://www.vistadb.net/tutorials/insertrows-vb.aspx

My question is this: Can both ways be used to add records to a database and if data is added one way, can the data be retrieved from the other way? 我的问题是:可以使用两种方式将记录添加到数据库中,如果以一种方式添加数据,是否可以从其他方式检索数据?

Yes they are completely different. 是的,他们是完全不同的。 So using a Insert statement to add data to the MySQL server would work, and retrieving that information with DDA is definitely possible. 因此,使用Insert语句将数据添加到MySQL服务器将起作用,并且使用DDA检索该信息绝对是可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM