Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> [Q] static data-members (C++) and "static" rows (Oracle)?
Hi,
Is there in Oracle tables something like
static data-members in C++ classes?
Example.
Here is a C++ class.
//===================================
private : int a1; string a2; static int a3; static string a4; public : AAA (int a1_i, const string& a2_i)
{
a1 = a1_i; a2 = a2_i; } static void set_a3 (int a3_i)
{
a3 = a3_i; } static void set_a4 (const string& a4_i)
{
a4 = a4_i; } // omitted }; int AAA::a1 (0);
int main ()
{
AAA i1 (100, "Paris"); AAA i2 (50, "London"); AAA i2 (123, "Madrid"); AAA i4 (100, "London"); AAA::set_a3 (222); AAA::set_a4 ("USA");
};
// omitted
//=================================== Using Pro*C/C++ Precompiler I would like to create table that contains data of all instances of the AAA class and data of all static data-members.
I can to create the following table :
Table "AAA-instances"
| 100 | Paris | 222 | USA | | 50 | London | 222 | USA | | 123 | Madrid | 222 | USA | | 100 | London | 222 | USA | -------------------------------------
But values in a3 and a4 columns are the same values in all tables (because a3 and a5 are static data members of the AAA class).
Is there any possibility in Oracle
not to store static data in each row of the "AAA-instances" table? =================================
Thanks in advance, Alex
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Wed Jun 23 1999 - 06:30:30 CDT