Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Problems with Pro*C
Do you have userid between? All variables used in embedded sql must be declare in this section.
EXEC SQL BEGIN DECLARE SECTION;
EXEC SQL END DECLARE SECTION;
Rick
-----Original Message-----
Sent: Wednesday, November 14, 2001 7:16 AM
To: Multiple recipients of list ORACLE-L
Hello
I am a novice to ProC. I have Some problems with compiling a sample file from ProC manual
for the code:
char userid[12]="scott/tiger";
EXEC SQL CONNECT :userid
I receive an error that says userid is an undefined variable, could someone help me?
Thanks very much
E.
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Nov 14 2001 - 07:14:17 CST
![]() |
![]() |