mysql創(chuàng)建表creattable實例
來源:懂視網(wǎng)
責編:小采
時間:2020-11-09 19:57:10
mysql創(chuàng)建表creattable實例
mysql創(chuàng)建表creattable實例:實例一:創(chuàng)建最基本的表(下面創(chuàng)建了一個manong表) CREATE TABLE manong( id int not null, category char(20) ); 實例二:創(chuàng)建帶主鍵(primary key)的表 CREATE TABLE manong( id int not null primary key
導(dǎo)讀mysql創(chuàng)建表creattable實例:實例一:創(chuàng)建最基本的表(下面創(chuàng)建了一個manong表) CREATE TABLE manong( id int not null, category char(20) ); 實例二:創(chuàng)建帶主鍵(primary key)的表 CREATE TABLE manong( id int not null primary key

實例一:創(chuàng)建最基本的表(下面創(chuàng)建了一個manong表)
CREATE TABLE manong(
id int not null,
category char(20)
);
實例二:創(chuàng)建帶主鍵(primary key)的表
CREATE TABLE manong(
id int not null primary key,
category char(20)
);
上面實例創(chuàng)建了一個mangnong表,分別有id和category兩個字段,其中id為主鍵。
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
mysql創(chuàng)建表creattable實例
mysql創(chuàng)建表creattable實例:實例一:創(chuàng)建最基本的表(下面創(chuàng)建了一個manong表) CREATE TABLE manong( id int not null, category char(20) ); 實例二:創(chuàng)建帶主鍵(primary key)的表 CREATE TABLE manong( id int not null primary key