Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Relational vs. PICK/Object DBMS

Re: Relational vs. PICK/Object DBMS

From: x <x-false_at_yahoo.com>
Date: Tue, 27 Apr 2004 12:50:14 +0300
Message-ID: <408e2c26@post.usenet.com>

"Neo" <neo55592_at_hotmail.com> wrote in message news:4b45d3ad.0404262124.4113eb73_at_posting.google.com...
> Below is a solution using XDb1/TDM.
> See www.xdb1.com/Example/Ex109.asp for additional info.
> See www.xdb1.com/Example/Ex108.asp for similar problem/solution.
>
>
> // Create a relational expression
> // to find things related to color AND texture
> TCHAR sExpr[kNmSz_g+1] = _T("((color)) ((texture))");
>
> // Prepare relational expression
> #define aSz 255
> int* pExpr[aSz+1] = {NULL};
> if (X_parse_r(sExpr, pExpr, aSz)) {return;}
>
> // Loop thru things satisfying expression
> // and print the found thing's full name.
> // The loop below prints the following three lines
> //

"((wig))(wig2)(((color))(red))(((color))(green))(((texture))(soft))(((materi al))(nylon))"
> //

"((wig))(wig2)(((color))(red))(((color))(green))(((texture))(soft))(((materi al))(nylon))"
> //

"((coat))(coat3)(((color))(green))(((texture))(smooth))(((texture))(supple)) "
> // Note: wig2 is printed twice because
> // the query routes via the two colors of wig2: red and green
> while (int* pT=X(pExpr)){
> TCHAR sName[kNmSz_g+1] = _T("");
> T_Name_get(pT, sName, kNmSz_g, TRUE);
> TRACE(_T("%s\n"), sName);
> }

The above print information that was not required. Can you fix it ?

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Received on Tue Apr 27 2004 - 04:50:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US