Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone ,

I can use java in database oracle as: create or replace and compile java source named classname as
Java
public class mozaa
{
 public static void entry(String o)
 {
 -- Reference ref1; 
 ---ref1 = new Reference("dddd", 1);
 }
};
/

but I think there is way to use c in database. How can I do that?
(sure c is programming language)

Thanks for any help.
ok
Posted
Updated 6-Mar-11 19:20pm
v3
Comments
Sergey Alexandrovich Kryukov 6-Mar-11 23:04pm    
You cannot use C in Oracle database but you can access Oracle database in your C code :-)
--SA
Mostafa Elsadany 6-Mar-11 23:22pm    
so what is pro*c

i want c to pass reference of variable to do something
if you know way to do that by code java plz tell me
thanks for any help
Manfred Rudolf Bihy 7-Mar-11 4:23am    
Pro*C is a precompiler that lets you use Oracle DML from within your C/C++ application. Please see the information on this site: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14407/toc.htm .

 
Share this answer
 
Comments
Dalek Dave 7-Mar-11 17:51pm    
Good Link
Wild-Programmer 8-Mar-11 6:43am    
Thanks Dave :)
Use CDatabase class. You can use it to connect to any database. You can connect to he database using connect(). Use EXEC commad to execute sql statements, use CRecordSet to retrieve the values.
 
Share this answer
 
Comments
Dalek Dave 7-Mar-11 17:51pm    
Good Answer
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900