oracle之数据处理之其他数据库对象
生活随笔
收集整理的這篇文章主要介紹了
oracle之数据处理之其他数据库对象
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
--創建序列
create sequence empseq
increment by 10---每次增長10
start with 10--從10開始
maxvalue 100--提供最大值
cycle --循環
nocache --不需要緩存登錄
運行結果
--查看 查看 select empseq.nextval from dual運行結果
--創建表 create table emp11 as select employee_id,last_name,salary from employees where 1=2--插入表 insert into emp11 values(empseq.nextval,'BB',1000)--查詢 select * from emp11查詢
--修改 alter sequence empseq increment by 1---每次增長10 --start with 10--從10開始 --maxvalue 100--提供最大值 nocycle --循環 nocache --運行結果‘
’
?
--手動創建索引 create index emp11_index on emp11(employee_id)運行結果
總結
以上是生活随笔為你收集整理的oracle之数据处理之其他数据库对象的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: zzbird的bbsmax出了?
- 下一篇: 前端学习(1843):前端面试题之vue