Re: Embedded Oracle SQL statement within the C++ programming language

From: <rgaston_at_epic.net>
Date: 1998/09/10
Message-ID: <6t7lu5$kc7$1_at_nnrp1.dejanews.com>#1/1


.
.
.

VARCHAR username[6];
VARCHAR password[6];

main()
{
strcpy(username.arr, "SCOTT");
strcpy(password.arr, "TIGER");
EXEC SQL connect :username identified by :password;

.
.
.

}

I don't think you could embed sql in a c++ program without using a precompiler (Pro*C++).

In article <6t1ogb$p5u$1_at_camel15.mindspring.com>,   "Kevin Bass" <akil1_at_mindspring.com> wrote:
> Can someone please supply an example of an embedded SQL statement within the
> C++ programming langauge?
>
> Kevin
>
>

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Thu Sep 10 1998 - 00:00:00 CEST

Original text of this message