The Function of MaxValue
2004-11-11 16:12
555 查看
create function MaxValue (@int1 int, @int2 int)
returns int
as
begin
declare @maxValue int
if (@int1 > @int2)
select @maxValue = @int1
else
select @maxValue = @int2
return @maxValue
end
select dbo.MaxValue(300,200)
returns int
as
begin
declare @maxValue int
if (@int1 > @int2)
select @maxValue = @int1
else
select @maxValue = @int2
return @maxValue
end
select dbo.MaxValue(300,200)
相关文章推荐
- VC与Delphi之间动态链接库互相调用
- javascript表单之间的数据传递!
- delphi中的时间操作技术(1)
- delphi中的时间操作技术(2)
- VB五子棋问题,请高手赐教
- IP地址的隐藏(delphi实现 )
- 解析IP地址为主机域名
- 将某一主机域名解析为IP地址
- 有关TrueDBGrid的问题向各位大虾请教
- 用VB和MTS开发多层数据库应用系统
- 纯编码实现数据库的建立或压缩
- 从数据库中动态选取下拉列表的方法
- 如何在VB例程中接收自定义消息
- [转贴]Phrack 最新公开的Win32用户态rootkit技术
- creating a Self Deleting Executable
- VB用API实现各种对话框(总结)
- VB.NET学习资料:
- ops ora-600[kccsbck_first]错误
- Member Function Pointers and the Fastest Possible C++ Delegates
- 我的php的一个数据库的操纵类