DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Reishi Mitani
Reishi Mitani

Posted on

MySQL Command Notes

To select,

select * from app_item WHERE name="great";
Enter fullscreen mode Exit fullscreen mode

To create,

INSERT INTO app_item (restaurant_memo, restaurant_name, created_by_id, updated_by_id, image) VALUES ("great", "great", 3, 3, "images/restaurant_posts/peperonchino.jpg");
Enter fullscreen mode Exit fullscreen mode

To delete,

DELETE FROM app_item WHERE id = 24;
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

🌱 DEV runs on 100% open source code known as Forem.

Β 
Contribute to the codebase or learn how to host your own.