首页 > 代码库 > oracle 基本查询

oracle 基本查询

-- 查看表字段

desc tablename;

 

-- 查询表数据

select * from tablename;

 

-- 设置别名

可以在字段名后

1. as "newName"  2."newName" 3.newName 12没有区别不加引号名字中间不可以加特殊字符活关键字

 

-- distinct去掉重发记录

 

oracle 基本查询