Forum Moderators: coopster
But I want to delete any row that does not have those keywords .. or save any row, that does have those keywords, in a new table .. which will become the new database.
I'm really a newbie at this so please be gentle.
Thanks for the reply.
I guess I could load the original spreadsheet then do the query you suggested, save the results, reload the database and do a second query (different fields), save those results, then add both sets to a new database.
So I am sure to have some duplications.
Is there a query that looks for duplicate records in a database?
I tried to find such an animal once, and looked around quite a lot and couldn't find one.
If you want to load it all into a database and then delete the unwanted rows, you can define your keyword field as UNIQUE in the table. That should help prevent a lot of duplicate records. But for all the work that would be involved in removing unwanted rows, I'd really consider the first option. Do you really want to manually delete about 60000+ rows?
That's what I had planned on doing.
".. and then build a script to read that file and populate the database."
I think I know how to do that .. with phpmyadmin?
"At the same time you can prevent duplicate entries."
Now THAT .. I don't have a clue how to do.
INSERT INTO perm_table
SELECT * FROM temptable
WHERE mycolumn LIKE '%myvalue%'
;
[dev.mysql.com...]