I am trying to create a before insert trigger for a table called "bookorder"
Table - "bookorder"
'order_id' contains numbers
'book' contains numbers
'description' contains text
The trigger is for when there is a duplicate of order_id and book.
If duplicate of both order_id and book then error message says "Error Duplicate order_id X Book Y"
eg the error message would say "Error Duplicate Order_id 1 Book 2"
If no error then message says "Record added"
Thanks for you help
Table - "bookorder"
'order_id' contains numbers
'book' contains numbers
'description' contains text
The trigger is for when there is a duplicate of order_id and book.
If duplicate of both order_id and book then error message says "Error Duplicate order_id X Book Y"
eg the error message would say "Error Duplicate Order_id 1 Book 2"
If no error then message says "Record added"
Thanks for you help
Comment