[英]How to create a Table in SQL Server Express - Microsoft
so I'm still a student, playing around with C#. 所以我还是一个学生,在玩C#。
as my first Test, I made a login Form in C# 作为我的第一个测试,我在C#中创建了一个登录表单
but now, I have to make a Database to store passwords/usernames (No need encryption for now, im just having fun, nothing very serious) 但是现在,我必须创建一个数据库来存储密码/用户名(暂时不需要加密,我只是很开心,没有什么很严重的)
I have Installed SQL Server Expression from Microsoft aswell as the SSMS coming with it to manage the SQL Server. 我已经从Microsoft安装了SQL Server Expression,以及与之配套的SSMS来管理SQL Server。
How do I create a Table, and then ; 如何创建表格,然后; how do i connect my data base to my DataBase?
如何将数据库连接到数据库?
This is how you create table : 这是创建表的方式:
CREATE TABLE employees
(
employee_id INT NOT NULL,
last_name VARCHAR(50) NOT NULL,
first_name VARCHAR(50),
salary MONEY
);
You can use a statement SQL 您可以使用语句SQL
CREATE TABLE
(
Field1 varchar(50),
Field2 varchar(50),
Field3 int
)
A little documentation https://www.w3schools.com/sql/sql_create_table.asp 一点文档https://www.w3schools.com/sql/sql_create_table.asp
Or simply you can use MS Management Studio 或者,您可以简单地使用MS Management Studio
Table Designer... 表设计器...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.