发布网友 发布时间:2022-04-26 18:01
共2个回答
热心网友 时间:2022-04-10 07:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
1、insert into B(a) select a from A where a= '1'
2、create view v_create_v select * from a
create procere p_ctrate_table
as
begin
select * from A
end
3、(1)select count(*) from 职员表 group by 性别
(2)select case 分数 when >90 then '优' when >80 then '良' else '其他' end from 职员表
(3) select * from 职员表 having count(distinct 职员姓名) >=2
(4) select 职员性别,
sum(case when 职员性别 = '0' then 1 else 0 end) '男',
sum(case when 职员性别 = '1' then 1 else 0 end) '女' from 职员表 group by 职员性别 having count(职员性别) >=10
4、create trigger t_insert
after insert on o
for each row
begin
update A set b=b-3 where a=1;
end
热心网友 时间:2022-04-10 09:10
SQL语句,只要对工作有利的,每句都重要。具体来我的论坛看看,百度“凤国云静办公服务”,99fg等你来交流。