Home > Database > Mysql Tutorial > SQL 必知必会笔记15创建和操纵表

SQL 必知必会笔记15创建和操纵表

WBOY
Release: 2016-06-07 17:39:05
Original
1010 people have browsed it

创建表的两种办法: 使用DBMS 提供的交互式创建和管理数据库表的工具; 直接用SQL 语句创建。 表创建基础 创建表示例: Products 2 ( vend_id CHAR ( 10 ) NOT NULL , 5 prod_name CHAR ( 254 ) NOT NULL , 6 prod_price DECIMAL ( 8 , 2 ) NOT NULL , 7 pro

创建表的两种办法:

  • 使用DBMS 提供的交互式创建和管理数据库表的工具;
  • 直接用SQL 语句创建。
  • 表创建基础

    创建表示例:

    Products 2 ( vend_id CHAR(10) NOT NULL, 5 prod_name CHAR(254) NOT NULL, 6 prod_price DECIMAL(8,2) NOT NULL, 7 prod_desc VARCHAR(1000) NULL 8 ); ,

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template