Home » Developer & Programmer » Forms » insertiing record
insertiing record [message #116616] Wed, 20 April 2005 22:41 Go to next message
orcl_dba
Messages: 84
Registered: March 2005
Member
hi i am unable to insert records in the database using forms 6i with oracle 9i ...



i dont know what is the prblem

i have a table that has 2 fiels category id and category name

here is the code for the inserting operation im using ....


eclare
catgid number;

catgname varchar2(20);

begin

catgid := :TXTCID;
catgname := :TXTCNAME;


insert into category values(:catgid,catgname);


end;


now it doesnt show any error but record is not inserted in the dataabse...


best regards.. to hyou thnx in ad vance
Re: insertiing record [message #116620 is a reply to message #116616] Wed, 20 April 2005 23:36 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Do you have a primary key on this table?

In which order are the fields in the table defined?
Re: insertiing record [message #116622 is a reply to message #116620] Wed, 20 April 2005 23:42 Go to previous messageGo to next message
orcl_dba
Messages: 84
Registered: March 2005
Member
yeah.. i have primary key

category id is incremented like 1 ,2 ,3 ,4 etc but thre is no sequence..

so i have 5 records.. and i am giving values in this statement ..

as
6 , and anyother string..

still not been able to get things corrected..


thnx for you ..
Re: insertiing record [message #116629 is a reply to message #116616] Thu, 21 April 2005 00:23 Go to previous messageGo to next message
doraistud
Messages: 14
Registered: April 2005
Junior Member
Hi Try to put a commit after insert statement and try.
Re: insertiing record [message #116757 is a reply to message #116616] Thu, 21 April 2005 19:59 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please tell me the order in which the fields are defined in your table.

David

[Updated on: Thu, 21 April 2005 21:20]

Report message to a moderator

Previous Topic: Automatic Stock Level Notifications.
Next Topic: any one with pdf book of Forms /Report 6i
Goto Forum:
  


Current Time: Thu Sep 19 17:55:31 CDT 2024