创建数据库以及如何 [英] creation a data base and how to

查看:64
本文介绍了创建数据库以及如何的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

甜蜜的一天
我需要知道如何在asp .net中创建数据库
以及如何创建表
而且我需要知道我的sql(数据库)和我的
之间的连接方式 代码
例如.如果我创建的屏幕包含用户名和密码
我知道我需要在数据库中创建一个表,其中包含用户名和用户
名称,以便屏幕上的用户名和密码读入数据库即由我创建
并感谢所有人.

Sweet day
I need to know how to creation a data base in asp .net
and how to creation a table
and i need to know how conection between my sql (data base) and between my
code
eg. if i create screen consist a user name and password
i know i need to create a table in data base consist a user name conection with user
name so the user name and password in the screen read in data base thats i create it
and thanks for all

推荐答案

坦白地说,对您问题的回答可能会占满书本,而且太多了,无法快速回答.
最好先阅读一些有关数据库设计的文章.然后,您必须查看SQL以了解如何在数据库中插入和检索数据以及如何从数据库中检索数据.之后,您将需要阅读有关ADO .Net的一些文章,特别是有关如何使用SqlConnection,SqlCommand和SqlParameter对象以便将SQL命令发送到数据库并接收结果的信息.大多数文章都是关于MS SQLServer的,因此最好先开始.

只需在文章中进行一些搜索,您肯定会找到关于这些主题的一些文章.这可能会花费一些时间,使您从想做的事情中分散出来,但是之后,您将对数据库有了更多的了解,并且可以更轻松地进行项目.

最后,您需要为MySQL数据库下载.Net连接器的当前版本.它的工作方式与用于MS SQLServer的对象相似,但并不是100%相同.
To be honest, the answers to your questions could fill books and is a little too much to be answered quickly.

It would be best to read some articles on database design first. Then you must look at SQL in order to learn how to insert and retrieve data into and from the database. After that you will need to do some reading about ADO .Net, especially on how to use the SqlConnection, SqlCommand and SqlParameter objects in order to send SQL commands to the database and receive the results. Most articles will be about MS SQLServer, so it''s better to start with this first.

Just do a little search here in the articles and you will certainly find a few articles on any of those subjects. It will probably take a little time and distract you from what you want to do, but after that you will understand a little more about databases and get on with your project a little easier.

Last you will need to download the current version of the .Net connector for the MySQL database. It works similar to the objects uses for MS SQLServer, but it''s not 100% identical.


Here[^] is a step by step tutorial, although if you do not yet know how to create a database and a table you might struggle a little with it.


这篇关于创建数据库以及如何的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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