MySQL數據表基本操作

查看錶結構 desc 表名   show create table 表名\G;  查看錶詳細結構     修改數據表 修改表名 alter table 舊錶名 rename [to] 新表名;     to帶不帶均可       修改字段的數據類型 alter table 表名 modify 字段名 數據類型;   添加字段 alter table 表名 add 新字段名 類型 約束條件  [ f
相關文章
相關標籤/搜索