數據庫的建立和基礎知識

1.數據庫操做:
建立:create databases xxx;
使用:use xxx;
刪除:drop databases xxx;
顯示:show databases;
數據類型:
數值型:
1.整型:
bit、int
2.浮點型:
float、double、decimal數據庫

字符串類型:
1.varchar:普通字符串
2.text:大文本
日期類型:
datetime
timestamp
2.表的操做:
使用表:use xxx;
查看錶結構:desc xxx;
建立表:create table(...);
刪除表:drop table xxx;ide

相關文章
相關標籤/搜索