Collection of some mysql SQL queries i commonly used
show databases;
use mysql;
show tables;
desc purchase_order;
show index from product;
select * from purchase_order\G;
create index idx_item_activity_id on vendor (item_activity_id);
alter table purchase_order modify status varchar(255);
update purchase_order_line inner join purchase_order on purchase_order_line.purchase_order_id = purchase_order.id set purchase_order_line.created_at = purchase_order.created_at;
alter table product drop index idx_type;