Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> help me!!! how can I insert data(pro*c)?
hi , there.
I have a big problem in pro*c program.
this is sample program and table layout.
I found ora-1400 error.
hw can I insert '1 byte space charactor' in not null column?
strcpy(username, "SCOTT");
strcpy(password, "TIGER");
exec sql connect :username identified by :password;
sql_dr_acc_type = ' ';
exec sql insert into a (b) values (:sql_dr_acc_type);
printf("code :%c:%d:\n", sql_dr_acc_type,sqlca.sqlcode);
exec sql commit;
}
table a (b char(1) not null) ^^^^^^Received on Tue Jan 05 1999 - 06:41:55 CST
![]() |
![]() |