摘要: 1.例子:select name,salary from emp group by name,salary(正确) 使用group by时,group by后面必须包含select后面出现的所有字段名 否则会出错ORA-00979: 不是 GROUP BY 表达式;group by的使用不需要whe 阅读全文
posted @ 2016-05-18 11:48 YunMan 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1、创建表的同时创建主键约束 (1)无命名 create table student ( studentid int primary key not null, studentname varchar(8), age int); (2)有命名 create table students ( stud 阅读全文
posted @ 2016-05-18 10:45 YunMan 阅读(87) 评论(0) 推荐(0) 编辑