Actual Practice : Table Valued Functions in my work -3
来源:互联网 发布:淘宝大学免费帐号 编辑:程序博客网 时间:2024/05/16 11:06
- Table Valued Functions
Let us have a look a example:
........ALTER FUNCTION [dbo].[GetDetails] ( @INPUTSQL VARCHAR(MAX) ) RETURNS @A TABLE ( ID INT IDENTITY(1,1), Details VARCHAR(50) ) BEGIN .......
Look at : The “Returns” is ‘Table’ which means this funciton will return a table. This table has 2 column ‘ID’ and ‘Details’. Then we can use below sql to get one of the value of those two.
Select * from [dbo].[GetDetails](@ID) --we can fill with one value of "ID"
Now we must clear that: what in the () must be one of those two column on the other words is : we must not fill all the value of columns.
You can make some correspond changes if we have three or more parameters in the funciton.
0 0
- Actual Practice : Table Valued Functions in my work -3
- Actual Practice : Scalar Valued Functions in my work - 2
- Actual Practice : DATEADD & DATEDIFF in my work - 1
- Actual Practice : Insert into select from in my work -5
- Actual Practice : Scripts Integration in my work - 6
- Actual Practice : [with CTE]&[convert]&[coalesce] as in my work - 4
- Conclusion for my actual job in my work
- Table-Valued User-Defined Functions
- Actual practice - search some columns in one table but not that table - 8
- How do virtual functions work in C++?
- THE EFFORT NEEDED IN MY WORK
- Practice.3_YU My Queue
- CLR Table-Valued函数
- Why won't my ASP pages work in IIS 6.0?
- SF菜鸟笔记【SF Solutions in My work】
- The nobel table can be used to practice more SUM and COUNT functions.
- Feelings my work &my life
- My simple functions
- RSA加密算法原理
- mac上cocos2dx-lua环境搭建
- Java Web开发Tomcat中三种部署项目的方法
- mtk gps调试手册
- HDU 2014 青年歌手大奖赛_评委会打分
- Actual Practice : Table Valued Functions in my work -3
- Headless模式是在缺少显示屏
- 闭关日记 Day08
- How to describe yourself
- 并发之痛 Thread,Goroutine,Actor
- Nginx服务器的反向代理proxy_pass配置方法讲解
- 2016年第七届蓝桥杯C/C++程序设计本科B组省赛 煤球数目(结果填空)
- 自定义注册内容观察者
- Tell me about yourself