SQL+C++, is it possible ?
From: Bruno GEORGES <georgeb_at_worldnet.net>
Date: 1995/12/14
Message-ID: <4anpjk$d6q_at_aldebaran.sct.fr>#1/1
}
Date: 1995/12/14
Message-ID: <4anpjk$d6q_at_aldebaran.sct.fr>#1/1
Hi dear readers,
I'd like some advice concerning the following issue:
Starting from an Object Oriented Model (i.e. an OMT one) I'd like to implement the class (i.e. EMP) using C++ and code the methods using SQL statements embedded in C++.
example (do not consider syntax mistakes):
class EMP {
int empid; char name [20]; char address[35]; public void print_emp (int);
}
/* how to implement this method?? */
void EMP::print (int id){
char empname[20];
select name into empname from EMP where empid=id
}
This example try to expose my problem, does anyone know how to code SQL and C++ together ?
Is there any Pro*C++ ?
I'll really appreciate your help.
Thanks,
/*
Bruno GEORGES
MSc Computer Science
5.rue Pierre Louys
75016 Paris
France
*/
Received on Thu Dec 14 1995 - 00:00:00 CET