码迷,mamicode.com
首页 > 数据库 > 详细

oracle 创建表

时间:2017-11-28 11:51:12      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:地址   number   drop   rowid   prim   time   tab   char   add   

--创建表

create
table browser_track( btId number not null , opend_id varchar2(50) not null, url_address varchar2(100) not null, params varchar2(50) null, stay_time number default 0 not null , look_time number default 0 not null , behavior_name varchar2(10) not null, behavior_id number not null, pbehavior_name varchar2(10) not null, pbehavior_id number not null, create_time timestamp not null, primary key (btId) ); --表注释 comment on table browser_track is 用户行为跟踪表; --字段注释 comment on column browser_track.btId is 主键; comment on column browser_track.opend_id is opend_id; comment on column browser_track.url_address is url地址; comment on column browser_track.params is 参数列表; comment on column browser_track.stay_time is 停留时间; comment on column browser_track.look_time is 浏览时间; comment on column browser_track.behavior_id is 动作id; comment on column browser_track.behavior_name is 动作名称; comment on column browser_track.pbehavior_name is 父动作名称; comment on column browser_track.pbehavior_id is 父动作id; comment on column browser_track.create_time is 创建时间; --索引 create index behavior_id on browser_track(behavior_id); select t.*,t.rowid from browser_track t; drop table browser_track;

 

oracle 创建表

标签:地址   number   drop   rowid   prim   time   tab   char   add   

原文地址:http://www.cnblogs.com/blogxiao/p/7908502.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!