| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 859 人关注过本帖
标题: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
快速回复:mysql怎么写一个带输入输出参数的自定义函数
数据加载中...
 
   



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

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