关于SQL语句问题???????

来源:百度知道 编辑:UC知道 时间:2024/05/10 04:44:00
select empno from scott.emp group by job,sal having sal>=100

在这个sql中,“scott.emp”是个什么表?为什么中间有个点啊??
后面的having是什么意思啊 ??
这个句子没有问题,是正确的
scott.emp是表名!!!

这个句子是错的
::::::::::::::::::::::::
是不是scott是表的拥有者
就象dbo.gds一样

scott.emp 指的是scott表的emp字段
带一个点就是指的scott表的emp字段
having 跟where差不多...
不过如果你是分组后进行筛选就要用having