010_递归-- create Employees table and insert valuesIF OBJECT_ID('Employees') IS NOT NULLDROP TABLE EmployeesGOCREATE TABLE Employees(empid INT NOT NULL,...
分类:
其他好文 时间:
2015-02-10 23:00:24
阅读次数:
129
DISTINCT:指定结果集中返回指定列存在不重复数据的记录SELECTDISTINCTEMAILFROMHR.EMPLOYEES;ROWNUM:使用ROWNUM列来查询结果集中前N个记录SELECT*FROMHR.EMPLOYEESWHEREROWNUM<=3;显示列别名:SELECTEMP_NAMEAS姓名FROMHR.EMPLOYEES;设置查询条件:SELECTSALARYFROMHR.EMPL..
分类:
编程语言 时间:
2015-02-08 23:25:25
阅读次数:
366
视图 (view):
视图的作用就是当一个表中的数据并不想对成员全部开放,只针对不同权限的用户开放不同的数据部分,同子图一样,但是子图的修改,父图并
不受影响,而视图,解决了这一问题
依赖于某表创建一个视图
create view empview
as
select employee_id id, last_name name, salary sal
from employees
whe...
分类:
数据库 时间:
2015-02-05 20:32:10
阅读次数:
186
usesRegistry;procedureTfrmLogin.FormShow(Sender:TObject);varreg:TRegistry;beginReg:=TRegistry.Create;Reg.RootKey:=HKEY_CURRENT_USER;Reg.OpenKey(‘\SOFTWARE\Employees\‘,true);ifnotreg.ValueExists(‘User‘)thenReg.WriteString(‘User‘,‘UserID‘)elseedtuser.Text:=Re..
向表中插入一条数据
create table emp1
as
select employee_id , last_name , hire_date , salary from employees
where 1 = 2
需要注意的是,插入的数据,必须和表中数据种类,一一对应
insert into emp1
values(1001,'abc',to_date('1998-12-11',...
分类:
数据库 时间:
2015-02-03 19:30:58
阅读次数:
233
SQL语言分为三种:
DML: Data Manipulation Language 数据操纵语言
DDL: Data Definition Language 数据定义语言
DCL: Data Control Language 数据控制语言
select * (表示查询表中所有的列 ) from employees;
select employee_id , last_name...
分类:
数据库 时间:
2015-02-03 19:30:34
阅读次数:
217
The Employee table holds all employees including their managers. Every employee has an Id,
and there is also a column for the manager Id.
+----+-------+--------+-----------+
| Id | Name | Salary |...
分类:
数据库 时间:
2015-02-01 21:55:11
阅读次数:
418
题目链接Problem StatementCodenationis sendingNof its employees to a High Profile Business Conference and the goal is to cover maximum number of presentati...
分类:
其他好文 时间:
2015-01-25 16:35:51
阅读次数:
202
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gambler...
分类:
系统相关 时间:
2015-01-25 11:13:05
阅读次数:
228
1.字符串转换成json对象var txt = '{"employees":[' +'{"firstName":"Bill","lastName":"Gates" },' +'{"firstName":"George","lastName":"Bush" },' +'{"firstName":"Th...
分类:
Web程序 时间:
2015-01-22 21:43:48
阅读次数:
142