oracle 基本查询

SQL语句

 

-- 查询表数据

select * from tablename;

SQL*Plus语句

 

-- 查看表字段

desc tablename;

 

-- 设置别名

可以在字段名后

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

 

-- distinct去掉重发记录

 

--c 修改错误的语句

 

-ed  edit

 

--col

 

--for

posted @ 2017-05-08 22:40  浅书流年  阅读(178)  评论(0编辑  收藏  举报