SQL--Create

Source: Internet
Author: User
Tags generator

<title>Sql–create</title> Sql–create
  • Database operation
    Create Dateabase test;use test;show databases;show CREATE database test;drop database test;
    Create database if not exists test;
  • table Action
    use test; Create  table  user1  (ID int  not  null , username varchar  (
         
          not  
          null ) engine= InnoDB 
          default  Charset=utf8; 
         
    show tables;desc user1;select * from User1; 
  • Character
    Create database if not EXISTS test character set Gbk;alter database test character set UTF8;
    Create Table default CHARSET=GBK;

    Show create TABLE user1;
    ALTER TABLE User1 character set UTF8;

    Create database if not EXISTS test character set GBK;
    ALTER DATABASE test character set UTF8;

    GBK Old write GTK no language t_t

SQL--Create

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.