zoukankan      html  css  js  c++  java
  • mysql revise

    DATABASE

    create database db_name;

    use db_name;

    alter database db_name;

    drop database db_name;

    show databases;

    TABLE

    for example:

    ----------------------------------

    use db_name;

    create table table_name(

    cust_id int not ull auto_increment primary key,

    subject varchar(200),

    words varchar(100),

    username varchar(50),

    createtime datatime

    );

    show tables;

    desc mysql_test.customes;

    insert into mysql_test.customes values(901,'zhangsan','F','beijing');

    delete from mysql_test.customes where cust_name='wangwu';

    update from mysql_test.customes set cust_address='wuhan' where cust_name='zhangsan'


    END
    ---------------------------------------------------------------------------------------------
    欢迎关注 我的微博@疯狂的迈步 我的github@junhey
  • 相关阅读:
    SQL Server 存储过程
    String.format Tutorial
    第五次
    第四次
    第三次
    第一次作业
    第二次
    c/c++
    HelloWorld出现的问题
    Android系统架构
  • 原文地址:https://www.cnblogs.com/junhey/p/3631989.html
Copyright © 2011-2022 走看看