Deleting Duplicated Records

2002-04-10 Thread Jeffrey Flowers

I am new to MySQL and I have a test database that I am playing with. Through
an accident while playing around, I ended up with two identicle records in
the database. I did a filter to try and change just one of them but both
would come up, so I couldn't see how I was supposed to delete just one of
the two records.

In the end, I deleted both records and re-input the one I needed but I know
that there must be a better way of doing this. Perhaps having a column in my
database with a serialized, unique record number would be a way to prevent
this in the future?


Thanks,

Jeff Flowers


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Deleting Duplicated Records

2002-04-10 Thread Jeffrey Flowers

You are 100% correct.

Since MySQL does not support cursors, I always
put an auto_increment column in my tables for just
this purpose.

(This is what other DBMS' do, they just do it behind
your back)

You're right. I use DBase IV at work and every record has an internal record
number.

Unfortunately, the way MySQL really handles result
sets doesn't lend itself to simply adding a hidden
auto_increment field to each row to act as a cursor
and allow updating of rows in result sets.

If it did, then I'm sure they would have put cursor
support in the product already.

Ken

Thanks for the help.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




MySQL Home Uses

2002-04-10 Thread Jeffrey Flowers

I have started using MySQL because I want to learn about something new and
to keep a database of my growing comic book collection, which would be handy
should something should ever happen to them. In doing this, I have started
to think of other ways to use MySQL, such as managing my CD collection and
other such things.

What I would like to hear is how other people are putting MySQL to work in
their home environment. I searched Google for this but turned up nothing,
and hearing about what other people are doing often motivates me. If you
don't want to reply on list, feel free to email me instead.


Thanks in advance,

Jeff Flowers
[EMAIL PROTECTED]


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php