MySQL Forums
Forum List  »  Newbie

Re: How would I go about doing this?
Posted by: Felix Geerinckx
Date: April 06, 2005 05:59AM

Joey Gettings wrote:
> INSERT INTO ibrpg_quest VALUES (1, 'House Work',
> 'Clean your damn room scank', 1, 100, 'Coal', 30,
> 0, '', '', 0, 0, 100, 100, 30);
>
> After it's inserted, I want to remove it, or add
> something to it, or write over it.
>
> Say I wanted to change 'house work' to something
> else maybe.. 'after school work'.
>
> I'll get the duplicate error.

INSERT is for inserting new records

UPDATE is for changing records, eg like

UPDATE foo SET col = 'something else' WHERE id = 1

DELETE is for deleting records, eg like

DELETE from foo WHERE id = 1

--
felix

Options: ReplyQuote


Subject
Written By
Posted
Re: How would I go about doing this?
April 06, 2005 05:59AM


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.