上一页 1 ··· 7 8 9 10 11
摘要: 创建公司员工表,表的字段和数据类型 (1)where 约束 (2)group by 分组查询 当执行以下sql语句的时候,是以post字段查询了组中的第一条数据,没有任何意义,因为我们现在想查出当前组的多条记录。 继续验证通过group by分组之后,只能查看当前字段,如果想查看组内信息,需要借助于 阅读全文
posted @ 2019-08-29 09:06 你我皆牛马 阅读(384) 评论(0) 推荐(0) 编辑
摘要: #创建表,设置字段的约束条件 create table employee( id int primary key auto_increment, name varchar(20) not null, sex enum('male','female') not null default 'male', #大部分是男的 age int(3) unsigned not null default 28, 阅读全文
posted @ 2019-08-29 08:46 你我皆牛马 阅读(712) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11