摘要:
-- 谁的工资比Abel高? select last_name, salary from employees where salary>(select salary from employees where last_name = 'Abel'); LAST_NAME SALARY King 240 阅读全文
摘要:
组函数类型 avg count max min sum select avg(salary),max(salary),min(salary),sum(salary) from employees; AVG(SALARY) MAX(SALARY) MIN(SALARY) SUM(SALARY) 646 阅读全文
摘要:
等值连接 三个表之间的连接: select e.employee_id,e.department_id,d.department_name,l.city from employees e,departments d ,locations l where e.department_id = d.dep 阅读全文
摘要:
-- where 过滤条件 select last_name,hire_date from employees where to_char(hire_date, 'yyyy-mm-dd')='1994-06-07'; LAST_NAME HIRE_DATE Higgins 07-JUN-94 Gie 阅读全文
摘要:
static关键字的应用:使用静态的变量可以实现 "累加" 的效果 package com.aff.statics; public class TestCircle { public static void main(String[] args) { Circle c1 = new Circle(2 阅读全文