SA-MP Forums Archive
[MYSQL] How can I delete a line ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [MYSQL] How can I delete a line ? (/showthread.php?tid=501463)



[MYSQL] How can I delete a line ? - anou1 - 18.03.2014

Hi,


My title is my question.

How could I do to delete a row in a mysql table ?

Thank you.


Re: [MYSQL] How can I delete a line ? - doreto - 18.03.2014

This is not SQL forum.


Re: [MYSQL] How can I delete a line ? - FaZeRs - 18.03.2014

Go to your phpmyadmin > Select your database > Click Structure on which table you want delete row > And delete row which you want delete


Re : [MYSQL] How can I delete a line ? - anou1 - 18.03.2014

Not like that I mean with a query.

Cause I'm trying to do a CMD that allow an admin to delete a house that exists in the database.

for example:

/deletehouse ID Will delete the house ID X.


Re: [MYSQL] How can I delete a line ? - VishvaJeet - 18.03.2014

DELETE FROM (tablename) WHERE row_name = row_value


Re: [MYSQL] How can I delete a line ? - anou1 - 18.03.2014

Okay thank you