Mysql deleting and editing options
#1

I just started learning mysql

http://i.imgur.com/Gfs0rYX.png

How do I delete line? For example line with id 23?

And why I have edit and delete options in this table : http://i.imgur.com/ec3R2eS.png but dont have them in my first table(first picture). Im pretty sure I created both tables the same way
Reply
#2

You don't need buttons to delete or edit data from MySQL.
Just use the queries: Delete, Update and Insert Into.
Example:
PHP код:
DELETE FROM `tableWHERE `id` = 23
PHP код:
UPDATE `tableSET `IntCol` = , `StrCol` = 'Test'
Reply
#3

You only have the edit options if the table has a primary key. If the table does not have a primary key then a row cannot be uniquely identified and those options won't work.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
You only have the edit options if the table has a primary key. If the table does not have a primary key then a row cannot be uniquely identified and those options won't work.
Thank you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)