摘要:
/* 指定表中数据发生变化时触发器自动生效 3种常规触发器:DML触发器 DDL触发器 登陆触发器 */ --1.创建DML触发器 --eg: create trigger T_DML_employee on employee --on table/view after insert --for/af... 阅读全文
posted @ 2019-05-17 21:08
赵钱富贵
阅读(138)
评论(0)
推荐(0)
摘要:
存储过程是预编译sql语句的集合,存储在一个名称下作为一个单元来处理 表employee 属性id,name 1.创建 create procedure proc_name --存储过程 @name char(20) as --形参 select * from employee where name 阅读全文
posted @ 2019-05-17 19:54
赵钱富贵
阅读(189)
评论(0)
推荐(0)
摘要:
1. select ...from... [into...] //distinct去重 ; top n 项数 where... // group by... //分组 having... //指定组或聚合的搜索条件 order by... //排序 compute... //附加函数 union [ 阅读全文
posted @ 2019-05-17 10:40
赵钱富贵
阅读(214)
评论(0)
推荐(0)

浙公网安备 33010602011771号