abstract://創(chuàng)建一個名為datebase的數(shù)據(jù)庫 校驗采用 utf8_general_ci CREATE DATABASE `datebase` COLLATE 'utf8_general_ci'; //創(chuàng)建一張名為table1 的表 里面有 id na
//創(chuàng)建一個名為datebase的數(shù)據(jù)庫 校驗采用 utf8_general_ci CREATE DATABASE `datebase` COLLATE 'utf8_general_ci'; //創(chuàng)建一張名為table1 的表 里面有 id name 等數(shù)據(jù),并且設(shè)定了相關(guān)屬性 CREATE TABLE `table1` (`id` mediumint(5) NOT NULL,`name` char(10) NOT NULL); //向表中插入一條數(shù)據(jù) INSERT INTO `table1` (`id`, `name`) VALUES ('null ', '楊過'); //查詢表的數(shù)據(jù) SELECT * FROM `table1` ; //修改表的數(shù)據(jù) UPDATE `table1` SET`id` = '0',`name` = '楊康' WHERE `id` = '0' ; //刪除表中的數(shù)據(jù) DELETE FROM `table1` WHERE `id` = '0' ;
Correcting teacher:天蓬老師Correction time:2019-07-01 17:37:03
Teacher's summary:這些操作, 任何一種數(shù)據(jù)庫引擎都要提供,也是必備的,掌握它, 基本上常用的開發(fā)場景都能應(yīng)付