千家信息网

oracle基本操作

发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,对表的结构操作add 增alter table 表名 drop (列 字符类型(长度)); 删modify 改desc dept; 查表结构对记录操作select 列名 from 表名 where 条
千家信息网最后更新 2026年11月02日oracle基本操作

对表的结构操作

add 增

alter table 表名 drop (列 字符类型(长度)); 删

modify 改

desc dept; 查表结构


对记录操作

select 列名 from 表名 where 条件 查

update student set 列="" where 条件 改

delete from 表名 where 条件 删(只删记录不删表结构)



max() 最大值

函数 min() 最小值

avg() 平均值

count() 总 值


关联数据库查询

select 列名,列名 from 表1,表2 where 主键=外键 and 条件

select 列名,列名 from 表1 where 表1主键=(select 表2外键 from

表2 where 条件)


like 字符% 以什么开头

order by 排序

group by 列名 having 条件 按什么分组统计在用having限制条件


0