Java Web Single-table operations

Source: Internet
Author: User

In order to test the Javaweb project, I did an update on a single table.

1. Add Group

If you need the source code of this project, welcome Dabigatran: 438255459

2. Unzip

Unpack this package, and then use Eclipse to open the project, as far as Tomcat is concerned, I will default you.

3. Start

Because I even am my native database SQL Server, so you need to change your SQL connection information.

4. Database Building Tables
Use Master;if EXISTS (SELECT * from sysdatabases WHERE name= ' cms ')   DROP DATABASE CMS; Gocreate DATABASE Cmsgouse CMS; GOif EXISTS (SELECT * from sysobjects WHERE name= ' admin ')   DROP TABLE [admin]; Gocreate TABLE [Admin] (   ID INT IDENTITY (LoginName),   NVARCHAR () not NULL UNIQUE,   [Password] NVARCHAR ( Not NULL,   realname NVARCHAR (a) not NULL,   Lastloginip NVARCHAR (() null,   PRIMARY KEY (LoginName)); go--add data to Administrator table Admininsert into admin (loginname,[password],realname) VALUES (' zxx ', ' zxx ', ' Zhou Xingching ')
5. Start the project

Click on the project name, right--->run as--and Run on Server. You can see the legend as shown:

"Click to enter", you can work on this table.

Legend on the above, if you want to test, look at the source, download it yourself.

Java Web Single-table operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.