WHEN 'delete' THEN Delete InventoryItem where InventoryEntryID = Object_ID and InventoryItemID = Circuit_Number;
Delete ServiceInventory where InventoryEntryID = Object_ID and InventoryItemID = Circuit_Number;
Delete ServiceItem where LineItem = Object_ID and LineItemData = Circuit_Number;
WHEN 'change' THEN
SELECT CUSTOMERID, TC from Service where CUSTOMERID = Customer_ID and TC = TC_Name; --IF ! update Service set customerID = customer_ID; --END IF; update InventoryItem set InventoryEntryID = Object_ID, InventoryItemID = Circuit_Number , Action = Action_Name , LoCNA = Location_A , LOCNZ = Location_Z , CustomerID = Customer_ID , COPSTMCustomerCode = COPS_Customer_Code where InventoryEntryID = Object_ID and InventoryItemID = Circuit_Number;
update ServiceItem set LineItem = Object_ID, LineItemType = Inventory_Item_Type, LineItemData = Circuit_Number where LineItem = Object_ID and LineItemData = Circuit_Number;
update ServiceInventory set InventoryEntryID = Object_ID, InventoryItemID = Circuit_Number where InventoryEntryID = Object_ID and InventoryItemID = Circuit_Number;
COMMIT; END CASE Action_Name; end; /* EXCEPTION -- exception-handling part starts here WHEN comm_missing THEN */ END procCopsCircuitOraclestatement; / I don't know what is the problem.
Did you do "show errors"? to find out what the error is. What you posted is like saying, this here is my haystack, I dropped something small in it, like a needle, but not necessarily a needle. Now Go Git It! Are you using Toad? you can step through your code in Toad (heh it rhymes) and find out which line has the error. Mark
Thanks. Yes, I am using Toads.it is giving a nonsense message.For example when I put the declare statement it complains about that. Also I get the following error on my variable declaration: PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "VARCHAR2" to continue.