T-SQL 用户定义函数重载? [英] T-SQL User defined function overloading?

查看:32
本文介绍了T-SQL 用户定义函数重载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 T-SQL 不是面向对象的.我需要编写一组模拟 C# 中方法重载的函数.

I understand that T-SQL is not object oriented. I need to write a set of functions that mimics method overloading in C#.

T-SQL 是否支持函数重载?如果有黑客可以做到这一点,是否推荐?

Is function overloading supported in T-SQL in any way? If there is a hack to do this, is it recommended?

推荐答案

不,没有办法做到这一点.

No, there is no way to do this.

我建议你重新审视这个要求,因为让苹果看起来像橘子"通常很难做到,而且价值也有问题.

I recommend you revisit the requirement, as "make apples look like oranges" is often difficult to do, and of questionable value.

这篇关于T-SQL 用户定义函数重载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆