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

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

WBOY
WBOYOriginal
2016-06-07 17:39:05959browse

创建表的两种办法: 使用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 ); ,

    Statement:
    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