在Mysql上創(chuàng)建數(shù)據表實例代碼
更新時間:2014年03月21日 11:37:36 作者:
這篇文章主要介紹了如何在Mysql上創(chuàng)建數(shù)據表,需要的朋友可以參考下
復制代碼 代碼如下:
create table shujubiao(
id int primary key auto_increment, 指定為i整形
name varchar(32) not null, 指定為不固定長度,最大為32為字符,不能為空
password varchar(64) not null, 指定為不固定長度,最大為64為字符,不能為空
email varchar(128) not null, 指定為不固定長度,最大為128為字符,不能為空
age tinyint unsigned not null 指定為小整型
)
您可能感興趣的文章:
- MySQL創(chuàng)建數(shù)據庫和創(chuàng)建數(shù)據表的操作過程
- mysql如何創(chuàng)建數(shù)據庫并指定字符集
- MongoDB連接和創(chuàng)建數(shù)據庫的方法講解
- DataGrip連接Mysql并創(chuàng)建數(shù)據庫的方法實現(xiàn)
- MySQL創(chuàng)建數(shù)據表并建立主外鍵關系詳解
- java使用JDBC動態(tài)創(chuàng)建數(shù)據表及SQL預處理的方法
- sqlserver2005自動創(chuàng)建數(shù)據表和自動添加某個字段索引
- MySQL創(chuàng)建數(shù)據庫和創(chuàng)建數(shù)據表
相關文章
mysql 8.0.18各版本安裝及安裝中出現(xiàn)的問題(精華總結)
這篇文章主要介紹了mysql 8.0.18各版本安裝及安裝中出現(xiàn)的問題,本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下2019-12-12