谁可以提供一个SQL的实例啊 谢谢了

来源:百度知道 编辑:UC知道 时间:2024/05/25 14:29:44
我是刚开始学,有没有具体的简单的例子啊

书上有的啊 何必要到这来问啊
给你一个啊:
/*create table students(
sno char(9) primary key,
sname char(20),
age smallint,
sex char(2),
)*/
/*insert into students
values('000111101','张三','19','男')
insert into students
values('000111102','王雪','20','女')
insert into students
values('000111103','李娜','18','女')*/
/*create view st_girl(sno,sname,age)
as
select sno,sname,age
from students
where sex='女'*/

/*select sno,sname,age
into girl from students
where sex='女'*/

/*create table students2(
sno char(9) primary key,
sname char(20),
age smallint,
sex char(2)
)

insert into students2
select *
from students
*/

自己去试一下啊