Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Call function in a query

This is a discussion on Call function in a query within the SQL forums, part of the Databases category; I am in need to call a function in a query. I want the syntax for that. Along with that i have to get some variables values also. So send ...

Go Back   Geeks Talk > Databases > SQL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 09-20-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
Call function in a query

I am in need to call a function in a query. I want the syntax for that. Along with that i have to get some variables values also. So send me one example and the exact syntax to be placed and I dont know where that function should be copied or placed and how to call that function in the query.

Question asked by visitor Nataraj
Reply With Quote
The Following User Says Thank You to Geek_Guest For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 09-20-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,860
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Call function in a query

You can call the functions as you call predefined functions like TRIM,REPLACE etc. To call a function directly from SQL it should not have any OUT parameter.
Reply With Quote
  #3 (permalink)  
Old 10-11-2007
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 518
Thanks: 30
Thanked 63 Times in 61 Posts
susarlasireesha will become famous soon enough
Re: Call function in a query

Suppose numtowords is a function,
To call a function in query we can write
select sal,numtowords(sal) from emp
select numtowords(1000) from dual.i think i will help u.
Reply With Quote
The Following User Says Thank You to susarlasireesha For This Useful Post:
Reply

  Geeks Talk > Databases > SQL

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
I get error "invalid call to function"... JobHelper QTP 1 06-23-2008 04:10 PM
I would like to call the function in Javascript saranyamahendran C# 1 10-15-2007 04:14 AM
Query about a Function Remasri PHP 3 03-17-2007 03:10 AM
How can i call that function? JobHelper Java 1 12-06-2006 03:16 AM
Query with a Function in C joel C and C++ 1 07-16-2006 12:33 PM


All times are GMT -4. The time now is 05:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved