MySQL Forums
Forum List  »  Newbie

Reading Updating Inserting Indexed Table - Sequence of Events
Posted by: Mike Lambert
Date: February 03, 2019 03:15AM

Hi,
I have an indexed table. Index is customer number and date.

I have a transaction to update the master or create a new master file row .. but I don't know if the master file row exists.

Do I read the master file first to determine if the row exists and then take the appropriate action or try an update first. If this fails then I know to do an insert.

Pls don't give me a script ... I can't read them. Just the logical steps behind the approach.

Many Thks,

Mike

Options: ReplyQuote


Subject
Written By
Posted
Reading Updating Inserting Indexed Table - Sequence of Events
February 03, 2019 03:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.