SQL语句
/*进入数据库*/ USE example; /*查询student表*/ SELECT * FROM student;
例子 /*进入数据库*/ USE `example`; /*判断是否存在这张表,存在就删除*/ DROP TABLE IF EXISTS `simple`; /*创建表*/ CREATE TABLE `simple` ( `id` INT(11) NOT NULL, `name` CHAR(32) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=INNODB DEFAULT CHARSET=gbk; /*写入表头*/ INSERT INTO `simple`(`id`,`name`) /*写入内容*/ VALUES (1,‘aa‘),(2,‘bb‘),(3,‘asdfasdf‘);
相关推荐
bleach00 2020-11-10
lmllouk 2020-11-02
一片荷叶 2020-10-28
jiong 2020-10-31
Youda 2020-08-29
thunderstorm 2020-08-19
guodaoying 2020-08-16
whyname 2020-08-16
zjyzz 2020-08-16
nan00zzu 2020-08-08
zyjj 2020-07-26
xwb 2020-07-19
云之飞踢 2020-07-08
chenjiazhu 2020-07-08
明月清风精进不止 2020-07-05