Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
mysql [2008/09/03 18:54] a |
mysql [2008/09/26 19:15] a |
||
---|---|---|---|
Line 20: | Line 20: | ||
GRANT ALL PRIVILEGES ON *.* TO myuser@localhost IDENTIFIED BY ' | GRANT ALL PRIVILEGES ON *.* TO myuser@localhost IDENTIFIED BY ' | ||
+ | |||
+ | |||
+ | ==== MySQL: removing duplicate rows from a table ==== | ||
+ | |||
+ | First create a temporary table containing the cleaned-up data: | ||
+ | |||
+ | | ||
+ | |||
+ | and then just delete the original and rename the temporary table: | ||
+ | |||
+ | DROP TABLE original_table; | ||
+ | | ||