![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DB
venus0315
这个作者很懒,什么都没留下…
展开
-
Oracle表中实现递归查询树形结构
若将一个树状结构存储在一张表里,需要在表中存入两个字段ID和PARENTID,表示每一条记录的parent是谁。 table: treeTable ID PARENTID 字段3 …… 1 null a …… 2 1 b …… 3 2 d …… Oracle中可以使用SELECT ……FROM……S原创 2016-11-20 14:31:14 · 6886 阅读 · 0 评论 -
数据库变更
数据库变更: 创建数据库:create database 数据库名 删除数据库:drop database 数据库名 表变更: 新建表:create table 【表名】(field1 type,field2 type )primary key( field) 删除表:drop table 【表名]】 变更表名:alter table 【表名old】rename 【表名n原创 2017-03-02 23:05:02 · 742 阅读 · 0 评论