当前位置:首页 > 数据库 > 正文

oracle——创建数据表

2024-03-31 数据库

创建数据表;

 create table 表名 ( 列明1 数据类型1 [约束性条件],
                     列明1 数据类型1 [约束性条件],
                    
                     ……

                    ) tablespace 表空间



create table student05 ( student_id number not null,
                         student_name varchar2(20),
                         student_age number,
                         status varchar2(2),
                         version number default 0
                       ) tablespace test

select * from student05;

 

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/12436.html