1.准备
create table tb4(id int,v1 int);
insert into tb4(id,v1) values(1,11);
insert into tb4(id,v1) values(2,12);
2.实验
实验 一
select * from tb4
![]()
实验 二
select * from tb4 where rownum<=1
![]()
实验 三
select * from tb4 where rownum<=2
![]()
本文详细介绍了一个简单的SQL实验过程,包括创建表、插入数据以及通过rownum条件进行数据检索的三种基本操作。这些实验有助于理解SQL的基本语法和数据检索的限制。
create table tb4(id int,v1 int);
insert into tb4(id,v1) values(1,11);
insert into tb4(id,v1) values(2,12);
实验 一
select * from tb4
![]()
实验 二
select * from tb4 where rownum<=1
![]()
实验 三
select * from tb4 where rownum<=2
![]()

被折叠的 条评论
为什么被折叠?