Oracle form Builder [message #673042] |
Sat, 03 November 2018 00:59 |
|
Hello , this is what i want is that i want to copy one row means the selected rows from one table to another how to do this please any one write query for me
-
Attachment: formm.png
(Size: 76.38KB, Downloaded 1901 times)
|
|
|
|
|
|
Re: Oracle form Builder [message #673051 is a reply to message #673050] |
Sat, 03 November 2018 13:46 |
|
The first approach is so simple but does not work what will be the problem , it gives me the following error
FRM:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-01400
kindly guide me what is the problem
My code
INSERT INTO PURCHASE_RETURN(BILL_NO, ITEM_NAME,QTY,RATE,DISCOUNT,AMOUNT)
VALUES (:PURCHASE.BILL_NO,:PURCHASE.ITEM_NAME,:PURCHASE.QTY,
:PURCHASE.RATE,:PURCHASE.DISCOUNT,:PURCHASE.AMOUNT);
EXECUTE_QUERY;
[Updated on: Sat, 03 November 2018 13:46] Report message to a moderator
|
|
|
|
Re: Oracle form Builder [message #673062 is a reply to message #673052] |
Sun, 04 November 2018 04:20 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
ORA-01400 means that you're trying to put NULL into a column that doesn't allow NULL values.
If it is some kind of an "ID" (as you mentioned a "sequence"), then you'd use something like this:
insert into purchase (id, bill_no, ...)
values (sequence_name.nextval, :purchase.bill_no, ...);
|
|
|