數(shù)據(jù)庫(kù)變更:
創(chuàng)建數(shù)據(jù)庫(kù):create database 數(shù)據(jù)庫(kù)名
刪除數(shù)據(jù)庫(kù):drop database 數(shù)據(jù)庫(kù)名
表變更:
新建表:create table 【表名】(field1 type,field2 type )PRimary key( field)
刪除表:drop table 【表名]】
變更表名:alter table 【表名old】rename 【表名new】
添加列:alter table 【表名】 add fieldname type
刪除列:alter table 【表名】 drop column fieldname
記錄變更:
添加數(shù)據(jù):insert into 【表名】(field1,fields2) values (數(shù)據(jù),數(shù)據(jù) )
刪除數(shù)據(jù):delete from 【表名】 (where field =數(shù)據(jù) andfield=數(shù)據(jù))
修改數(shù)據(jù):update 表名 set 列名=數(shù)據(jù) (where filed=數(shù)據(jù))
查詢數(shù)據(jù):select field,(*) from 【表名】(where field = 數(shù)據(jù))
新聞熱點(diǎn)
疑難解答
圖片精選