b****e 发帖数: 1 | 1 各位大侠,
我现在想用embedded SQL对一个Oracle 8i 的表进行update,
我在C文件中嵌入如下语句:
#include
#define MAX 18
exec sql begin declare section;
char user_name[30], user_pwd[10];
char etitle[10];
int esalary;
exec sql end declare section;
int main()
{
int i;
strcpy(user_name, "*****");
strcpy(user_pwd, "***");
exec sql connect :user_name identified by :user_pwd;
exec sqp declare emp cursor for
select title, salary from employee, works
where employee.eid = works.eid;
exec sql open emp;
for (i=0; i | m*****k 发帖数: 731 | 2 how is it now?
I also have such question.
I think u need use some preprocessor to handle the sourse code before using
gcc
failed to pass compiling.
【在 b****e 的大作中提到】 : 各位大侠, : 我现在想用embedded SQL对一个Oracle 8i 的表进行update, : 我在C文件中嵌入如下语句: : #include : #define MAX 18 : exec sql begin declare section; : char user_name[30], user_pwd[10]; : char etitle[10]; : int esalary; : exec sql end declare section;
|
|