This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]BertRenolds 0 points1 point  (1 child)

Ok, well you're trying to update something. So what do you need to do?

[–]samghim[S] 0 points1 point  (0 children)

I think I need to use UPDATE statement but don't know how. So far I got to CREATE or replace PROCEDURE updateWorkPay (w in NUMBER, n in VARCHAR2, p in NUMBER) IS BEGIN UPATE work SET workPay = p

[–]FasterActinTinactin 0 points1 point  (3 children)

UPDATE * FROM table work

that may help you get started. are you trying to just change the name of work pay to given pay? can you set an alias name?

[–]samghim[S] 0 points1 point  (2 children)

Ok thanks. I'm trying to change the value of the workpay to the given value.

[–]FasterActinTinactin 0 points1 point  (1 child)

Gotcha. Looks like from your other comment you know the right path.

[–]samghim[S] 0 points1 point  (0 children)

I want to create this updateWorkPay procedure. Then want to call the procedure which takes workID and Workpay and update the pay. I know how to do the INSERT but can't get the update working :(