摘要: select * from 表名; 在 select 后面列前使用distinct 可以消除重复的行 select distinct gender from students; 一、条件 使用where子句对表中的数据筛选,结果为true的行会出现在结果集中 语法如下 select * from 表 阅读全文
posted @ 2017-09-19 23:38 zy-- 阅读(157) 评论(0) 推荐(0)
摘要: mysql -hip地址 -uroot -p 登录 exit = Ctrl + d 退出 select version(); 查看当前版本 select now(); 显示当前时间 create database 数据库名字 charset = utf8; 创建数据库 drop database 数 阅读全文
posted @ 2017-09-19 00:36 zy-- 阅读(211) 评论(0) 推荐(0)