Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SP to INSERT or UPDATE

Status
Not open for further replies.

spnovice

Instructor
Jan 31, 2003
1
US
I need to write an SP in SYBASE as follows : -
Passing in will be values X & Y.
If X exists in my 2-field table, use Y to update field 2.
If X does not exist, then insert a new record.
If either of the above 2 successful, then return a 0.
If neither succesful, then return a 1.
I have written straightforward Selects before with SP's but nothing like this.
The OS is INIX.
Help !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top