DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Oracle (http://www.daniweb.com/forums/forum129.html)
-   -   Trigger help (http://www.daniweb.com/forums/thread122114.html)

veledrom May 2nd, 2008 10:00 am
Trigger help
 
Hi,

I need a trigger;
- to find number 1 from "ID" column and
- update "AVAILABILITY" column from Yes to No
in "PRODUCT" table.

Thanks

veledrom May 2nd, 2008 10:17 am
Re: Trigger help
 
Let me add; above process will be done after an insert into in "ORDER" table.

Shortly; Insert data into "ORDER" table and then things get updated in "PRODUCT" table as i required in first message.

Thanks again

Nige Ridd May 2nd, 2008 1:28 pm
Re: Trigger help
 
Not sure triggers are the best way to do this. BUT if you want to stick with triggers, you'll also have to write update and delete triggers ( If you delete an order for an item it's availability would increase, updating an order could affect it either way ).
Nige

veledrom May 2nd, 2008 1:35 pm
Re: Trigger help
 
How i send data from php to stored procedure and process it? I can't find it. I am new in oracle as well. I need a very simple example to give me an idea.

Nige Ridd May 2nd, 2008 2:26 pm
Re: Trigger help
 
You could always have Googled and found something like
http://www.oracle.com/technology/pub...uecks_sps.html

Nige

veledrom May 3rd, 2008 5:33 am
Re: Trigger help
 
i know i can use insert into in the trigers but, can i use update or delete table set...where id=1 in any trigger?


All times are GMT -4. The time now is 5:50 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC