MySql stuck
Hi all, hope someone can help.
I am trying to write some kind of script that will delete rows from a MySQL table using a parameter that I pass to it
My table has 3 colums and I want to delete the rows where the value in one of the colums matches a value passed programatically by a script.
I have create a file called remove_records.sql
delete from filenames where path="qp-ms"
then I do mysql -u username -p password < remove_records.sql
this works but I need to change the value of path frequently.
Hope all this makes some kind of sense?
Thanks
Stephen
|