Home » RDBMS Server » Server Administration » Calling Functions within a CREATE Statement
Calling Functions within a CREATE Statement [message #372810] Sat, 10 March 2001 19:10 Go to next message
jimmy
Messages: 21
Registered: November 2000
Junior Member
Hello.
If you plan on responding to this post, I'd like to thank you in advance.

My problem is that I have a function that accepts a parameter (example: 'AMD') and returns an updated stock quote for the ticker entered.

Currently I have this table:

CREATE Table Stocks (
symbol VARCHAR2(3),
quote NUMBER);

My question is if its possible to use that function described earlier and embed it within the CREATE statement so that the values under the quote attribute are derived from the function and uses the value under the symbol attribute as a parameter.

Perhaps its not possible at all with SQL.

Thanx in advance for answering.
Re: Calling Functions within a CREATE Statement [message #372821 is a reply to message #372810] Mon, 12 March 2001 05:06 Go to previous message
Thirumalai Prakash
Messages: 6
Registered: March 2001
Junior Member
Dear Mr.Jimmy,

It is possible if your are using oracle 8i.
You can use objects in your table. That objects
can have functions like this.

S.Thirumalai
Previous Topic: Please Help. insert data
Next Topic: A select statement; need some help
Goto Forum:
  


Current Time: Sat Jun 29 01:09:57 CDT 2024