Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 null keyword after table in sql

Author  Topic 

subhaoviya
Posting Yak Master

135 Posts

Posted - 2012-08-16 : 09:19:28
Hi,

I have seen one query written like shown below
select * from tablename(null) . what that null represents here?

thanks
Subha

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-08-16 : 09:50:43
It's a table-valued user-defined function, and null is passed as a parameter.
Go to Top of Page

subhaoviya
Posting Yak Master

135 Posts

Posted - 2012-08-16 : 09:51:45
Sorry friends, that is not a table, -function.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-08-16 : 11:33:25
Then it will throw a syntax error.
Go to Top of Page
   

- Advertisement -