Oracle基础知识-SQL简单命令
来源:互联网 发布:业余开淘宝店能赚钱吗 编辑:程序博客网 时间:2024/06/06 01:11
SQL语句包括两个部分:1 DDL 数据定义语言 2 DML 数据控制语言
DDL:
create:创建一个表
create table b(clob char(1));
alter:增加已经定义的表列的分配
drop:删除一个表
desc:查看一个表的定义
DML:
selelct:
select * from b;
insert:
insert into state values('fds','fds');
update:修改已有的数据
delete:删除已有的数据
带or/and的where子句:
select a,b,c from tablename where a='111',and b='222';
select a,b,c from tablename where a='111',or b ='222';
带not的where子句
select a,b,c from tablename where a != 1;
带搜索范围的where子句
select a,b,c from tablename where b between 1 and 19;
带搜索列表的where子句
select a,b,c from tablename where a in ('1','2');
带模式搜索的where子句
select a,b,c from tablename where a like 'a%';
- Oracle基础知识-SQL简单命令
- ORACLE sql基础知识复习
- Oracle PL/SQL基础知识
- Oracle SQL 基础知识
- oracle: sql 基础知识
- Oracle PL/SQL基础知识
- Oracle PL-SQL基础知识
- oracle基础知识,oracle sql练习
- oracle基础知识,oracle sql练习
- memcached基础知识和简单命令
- Oracle中备份表的简单sql命令
- oracle基础之sql基础知识
- oracle基础之sql基础知识
- oracle基础知识及sql练习
- oracle PL/SQL基础知识2
- oralce 基础知识 ,oralce 常用简单sql语句,oracle 新手必看之一
- oralce 基础知识 ,oralce 常用简单sql语句,oracle 新手必看之一
- Oracle简单的命令
- Linux之:ls -l 列表信息详解及扩展阅读
- PropertyUtils.describe(this);
- Hadoop字符转码的实现
- google svn
- sqlserver: 范围分组查询(group by, case)
- Oracle基础知识-SQL简单命令
- java破解ip屏蔽+多线程同步
- 【svn】教程
- 手机用户体验测试点
- vim配置文件
- QT常见错误二
- MFC编辑框换行实现
- php数据库操作类
- 真正优秀的程序员有哪些与众不同之处?