Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > triggers problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-07, 03:15
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 130
Smile triggers problem

I want query for trigger such as


create trigger on table T such as if user wants to update value A in a coloum on which previous value is A then it update as B instead of A
Reply With Quote
  #2 (permalink)  
Old 10-09-07, 03:41
flyboy flyboy is offline
Registered User
 
Join Date: Mar 2007
Posts: 114
What is the problem?
I suppose you know CREATE TRIGGER syntax and semantics. The clue is there.
This requirement is achievable by simple assignment statement, no need for query.
Reply With Quote
  #3 (permalink)  
Old 10-09-07, 04:11
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 130
Smile

Quote:
Originally Posted by flyboy
What is the problem?
I suppose you know CREATE TRIGGER syntax and semantics. The clue is there.
This requirement is achievable by simple assignment statement, no need for query.

actually i m totally new for triggers even no time for R&D

if can so please give the full syntax for required problem
Reply With Quote
  #4 (permalink)  
Old 10-09-07, 05:06
flyboy flyboy is offline
Registered User
 
Join Date: Mar 2007
Posts: 114
are you totally new for SQL and PL/SQL as well?
you got all the clues (with examples) in the links I posted, so you may start. if you will get stuck, post the code with description of its behaviour.
do you prefer waiting for spoonfed solution rather than consulting the documentation (do you call this "R&D")? I doubt it will take you longer.
moreover, what will be the price of the solution if you will not understand it?
what if somebody will not understand the requirements precisely the and will not post exactly what you want?
who will adjust the code if the requirements change?
Reply With Quote
  #5 (permalink)  
Old 10-09-07, 09:00
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 130
Smile

Quote:
Originally Posted by flyboy
are you totally new for SQL and PL/SQL as well?
you got all the clues (with examples) in the links I posted, so you may start. if you will get stuck, post the code with description of its behaviour.
do you prefer waiting for spoonfed solution rather than consulting the documentation (do you call this "R&D")? I doubt it will take you longer.
moreover, what will be the price of the solution if you will not understand it?
what if somebody will not understand the requirements precisely the and will not post exactly what you want?
who will adjust the code if the requirements change?

hello dear i am not here to listen your leacture if u wish to reply then its ok
either wise no problem

we are here to get only quick answer and share there knowledge not for listening any lecture

Last edited by ankur02018 : 10-09-07 at 09:16.
Reply With Quote
  #6 (permalink)  
Old 10-09-07, 10:03
georgev georgev is offline
SQL Apprentice
 
Join Date: Jan 2007
Location: hiding
Posts: 8,144
Actually, you're here to be helped. Contributers to this forum do not do your work for you.
__________________
George
You only stop learning when you stop asking questions.
Reply With Quote
  #7 (permalink)  
Old 10-09-07, 11:24
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,569
>we are here to get only quick answer and share there knowledge not for listening any lecture

By the way, what knowledge are YOU sharing here?

If you don't like the timeliness or tone of any response, then you are entitled to a complete refund & can take your problems elsewhere.

You can find many fine coding examples at http://asktom.oracle.com if you are willing to take a few moments to search for them.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!

Last edited by anacedent : 10-09-07 at 11:51.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On