hi all.
in my sql2005 i have a function that returns a value. func(x) returns j
how can use it in a select clause inside a s.proce?
select bb, func(xx) as jj , from ....
?
You should be able to include it right in your SELECT statement, since it returns a scalar.
You will, however, need to qualify the function with the schema; SELECT dbo.func(xx) or SELECT myschema.func(xx) etc.
No comments:
Post a Comment