摘要: 入门命令 增删改 建表 use ggteaching; create table User ( UserID smallint Unsigned zerofill not null AUTO_INCREMENT , UserName CHAR(15) not null, UserPassword C 阅读全文
posted @ 2016-09-01 18:42 熬夜与烟 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 删除表命令:drop table <表名>例如:删除表名为 MyClass 的表mysql> drop table MyClass;插入数据命令:insert into <表名> [( <字段名 1>[,..<字段名 n > ])] values ( 值 1 )[, ( 值 n )]例子:mysql 阅读全文
posted @ 2016-09-01 18:41 熬夜与烟 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 入门最基本语句 当连上服务器后,我们首先面对的是? 答:是库,库有1个或多个,因此我们要想对表/行做操作的话, 得先选库. 查看一下所有的库,怎么办? Mysql>Show databases; 选库语句: Use 库名 创建一个数据库: create database 数据库名 [charset 阅读全文
posted @ 2016-09-01 18:33 熬夜与烟 阅读(186) 评论(0) 推荐(0) 编辑