commands Flashcards
How to start MySQL in PuTTY?
mysql -p
to display catalog
show ________ ;
to open database
use ______;
to create a table
create table ________ (__, ___);
to delete table
drop table _______;
to create a field
insert into _______(__, __) values(__, __)
conditions in selecting
where ____=’__’;
order by asc/desc;
limit __;
show the table structure
describe ____;
add new field
alter table _____ add ______ varchar/int ();
rename field name/column
alter table _____ change _______ ________ varchar/int();
modify field attributed
alter table ______ modify _______ varchar / int();
delete field
alter table ________ drop ______;
rename table
alter table ____ rename to _______;
add primary key
alter table _______ add primary key (_______);
update record all or specific
update ________ set ______= ‘___’ where ______=’____’;