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

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