标题:mysql怎么写一个带输入输出参数的自定义函数
只看楼主
woaixiangcao
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2007-1-2
 问题点数:0 回复次数:0 
mysql怎么写一个带输入输出参数的自定义函数

功能就像:
use studentRegisterManager
go
create function differentTime(@section_id varchar(10),@currenttime datetime)
returns int
as
begin
declare @different int
declare @time datetime

set @time = (select section_set_time from [section] where section_id=@section_id)

set @different=DATEDIFF( d, @time,@currenttime)

return @different
end

一样

搜索更多相关主题的帖子: 输出 参数 定义 mysql 函数 
2007-11-17 15:18



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-186739-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.121647 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved