Equivalent of Oracle’s RowID in MySQL
Posted
by echo
on Stack Overflow
See other posts from Stack Overflow
or by echo
Published on 2010-04-28T09:57:34Z
Indexed on
2010/04/28
11:33 UTC
Read the original article
Hit count: 175
is there an equivalent of oracle's rowid in mysql?
delete from my_table where rowid not in (select max(rowid) from my_table group by field1,field2)
I want to make a mysql equivalent of this query!!!
What i'm trying to do is, : The my_table has no primary key.. i'm trying to delete the duplicate values and impose a primary key (composite of field1, field2)..!!
© Stack Overflow or respective owner