WRITE A FUNCTION TO DISPLAY THE OUTPUT OF AN EXISTING TABLE
RANGE LIKE COMMAM SEPERATED VALUES LIKE RANGE1,RANGE2,...
Answer Posted / carmel franco
Create function int select_dynamic(range varchar(255))
As
declare
@Qry Varchar(2000)
Begin
Begin try
Set @Qry =”select * from table1 where col1
in (“+range+”)”
Exec @qry
Catch
Print “error processing parameter”
Return -1
End try
Return 1
END
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is merge replication?
What is the purpose of a table?
What does select 1 mean?
What are the disadvantages of merge replication?
Where to find ntwdblib.dll version 2000.80.194.0?
What are the elements of dbms?
How can you check the level of fragmentation on a table?
How can you list all the columns in a database?
Explain about thread and memory management process of SQL?
What the different components in replication and what is their use?
What is Transparent Data Encryption?
Explain why variables called the most powerful component of ssis?
What is query and its types?
Give a example to search fr a string in all stored procedure in sql server.
What is wide table?