老菜的园子

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

database

table, view, function, procedure

table

record, field, index

record

insert
update
delete
select: top, distinct, order, group

where

and/or, in, between, is null, is not null, like

field

type: int, text, date, blob

constraints: not null, default, unique, auto_increment, primary key, foreign key, check;

alter table

add unique(xxx)

add primary key(xxx)

drop primary key

add foreign key(xxx) references table_name(xxx)

drop foreign key

add check(xxx)

alter field_name set default val

alter field_name drop default

 

add column xxx type

drop column xxx

 

 

posted on 2012-04-19 23:06  weichsel  阅读(206)  评论(0编辑  收藏  举报