Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2006

Tip: Looking for answers? Try searching our database.

external table function in DB2 LUW

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
monishkar@gmail.com - 22 Feb 2006 13:38 GMT
Can two external table functions in DB2 LUW have the same name even
though they have different specific_name?  Thanks.
Serge Rielau - 22 Feb 2006 14:13 GMT
>  Can two external table functions in DB2 LUW have the same name even
> though they have different specific_name?  Thanks.

Absolutely.
The requirement is that at least on of the parameters must be a
different type.
E.g.
CREATE FUNCTION FOO(INT) RETURNS TABLE(c1 INT) ...
CREATE FUNCTION FOO(BIGINT) RETURNS TABLE(c1 INT) ...

SELECT * FROM TABLE(foo(5)) AS X => invokes FOO(INT)
SELECT * FROM TABLE(foo(CAST(5 AS BIGINT))) AS X => invokes FOO(BIGINT)

Also check out teh type promotion rules.

Cheers
Serge

Signature

Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.