-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
76 lines (65 loc) · 1.79 KB
/
Program.cs
File metadata and controls
76 lines (65 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 图书馆管理系统
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
/*该应用使用的是本地数据库,需要先用以下语句,在MySQL中创建数据库和表
create database 图书馆管理系统
use 图书馆管理系统
create table 管理员信息表
(
id int identity(0,1) primary key,
username nvarchar(15),
pwd varchar(20),
权限 nvarchar(10)
)
create table 图书信息表
(
id int identity(0,1) primary key,
编号 nvarchar(20),
书名 nvarchar(20),
作者 nvarchar(20),
出版社 nvarchar(20),
价格 decimal (20,0),
来源 nvarchar(20),
是否借出 nvarchar(10),
种类 nvarchar(20),
入库时间 date,
备注 nvarchar(100)
)
create table 借阅表
(
id int identity(0,1) primary key,
身份证号 nvarchar(30),
编号 nvarchar(20),
姓名 nvarchar(20),
性别 nvarchar(10),
借阅日期 date,
应还日期 date,
借出状态 nvarchar(5),
操作时间 datetime,
备注 nvarchar(100)
)
create table 账号记录
(
id int identity(0,1) primary key,
username varchar(20),
pwd varchar(30)
)
*/
}
}