DB of Java-web Development

Source: Internet
Author: User
Tags modifier

1.MYSQL Introduction

MySQL is an open source Small Database management system, the developer of the Swedish MySQL AB company, currently belonging to the Oracle company.

Because of its small size, fast speed, low overall cost, especially the development of source code, is widely used by small and medium-sized websites.

2.mysql Common data types

3.SQL Introduction

Structured Query Language SQL (Structured Query Language) is the most important database manipulation language. Mainly used for database communication communication

4. Common commands

MySQL > show databases; Show all databases

MySQL > Use < database name >; Open a database with the name "database name"

MySQL > CREATE database < database name >;//creating databases with a database name

mysql > Drop databases < database name >;//delete database, Eg:drop db androidtest

MySQL > CREATE table < table name > (< Field 1 definition >,< field n definition >); Create a table

Field N definition: field name, type, width, non-null modifier, default modifier, auto_increment modifier

Eg:create table customer (ID int auto_increment primary key,name varchar (TEN) default ' Zhang San ',

Pass varchar (n) not NULL, createdate date);

MySQL >show tables;//Displays the table, showing only the names of all the tables.

MySQL >describe < table name >;//display all information for the table

MySQL >drop tabel [if exists] data table name;//Delete table

MySQL >

DB of Java-web Development

Related Article

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.