/*
返回老師管理下所有學生數*/
create
procedure proc_sum_student
@teacher_id int
,@sum_student int
outputas
select @sum_student=
count
(id)
---count
是統計函式
from student
where
teacher_id = @teacher_id go
/*輸入老師編號*/
declare
@sum_student int
---@sum_student
為宣告的變數
execute
proc_sum_student 102,@sum_student go
/*將儲存過程
proc_insert_student
加密*/
useschool go
alter
procedure proc_insert_student
@id int
,@name char
(30),
@gender char
(2),
@age int
,@grade smallint
,@class smallint
,@teacher_id int
,@parents_id int
,@graduation char
(20),
@city char
(10),
@cardno char
(20)
with
encryptionas
insert
into student (id,
name
,gender,age,grade,class,teacher_id,parent_id,graduation,city,cardno)
values
(@id,@name,@gender,@age,@grade,@class,@teacher_id,@parents_id,@graduation,@city,@cardno)
Oracle儲存過程加密
oracle儲存過程加密 實現方法 1 c set nls lang american america.usacii7 或c set nls lang american america.we8iso8859p1 或c set nls lang american america.zhs16gbk 當遇...
oracle加密儲存過程
方法一 oracle自帶工具 1 c set nls lang american america.usacii7 或c set nls lang american america.we8iso8859p1 或c set nls lang american america.zhs16gbk 當遇到加密...
Sql server 儲存過程加密
本方法可用於加密sql儲存過程 函式或者觸發器 使用 with encryption 選項 with encryption 子句對使用者隱藏儲存過程的文字 例子 if object id n pro encrypt test is not null drop procedure pro encryp...