I did a sample code in pro*C language to fetch data from a table.
Table Emp_table contain two fields: Emp_Name and EmpId.
From SQL-Plus I added 3 records and through Pro*C code, added another 3 records.
EXEC SQL SELECT Emp_Name INTO :ename From Emp_table where EmpId=1;
I’m unable to get the ename from the records I added via SQL-Plus but able to get data from records added via Pro*C code.
In SQL-Plus, when I do select * from Emp_table, it list all the 6 records.
Can anyone point me if I’m missing anything or it is an expected behavior.
It looks like you have not executed commit after insertion of records using SQL*Plus. Can you confirm on this?