Introduction - If you have any usage issues, please Google them yourself
user management system
The system level:
Common- > Get the Connection
- > the UserInfo (id, name, pass, email, power)
DAO- > userDAO (register, delete, query and other functions)
Service- > userService (called methods in the DAO)
The VIEW- > common user interface, the administrator interface, the user interface
Database tables: the userinfo
Sequence: seq_user
The create table the userinfo
(
Id number (10) primary key,
The name varchar (20) not null,
Pass a varchar (20) not null,
Email varchar (50),
Power varchar (20) default ordinary users
)
The create sequence seq_user
Start with 1
Increment by 1
Maxvalue 100000
nocycle
Nocache
To obtain the keyboard:
Scanner input new Scanner (System. In)
String name input. Next ()