Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在sql server查询的select语句中调用函数?
select name,function output() from tab where name='samp'
在上面的这个查询中如何调用一个函数
只需创建如下所示的查询并执行它...
SELECT name, output(params) FROM tab WHERE nam='samp'
简单地
select name, output() from tab where name='samp'
暂时忘记此函数是由您创建的,并认为这是一个内置函数,如Count()or Max()。我们怎么称呼他们?
Count()
Max()
select Count(*) from tab