--创建表
create table employee(
userId number not null,
userName
varchar2(50),
pwd varchar2(50),
email varchar2(100),
clazz
number
);
--向表中插入数据
INSERT INTO employee VALUES (‘1‘, ‘zhangsan‘, ‘zhangsan‘,
‘zhangsan@sina.com‘, ‘1‘);
INSERT INTO employee VALUES (‘2‘, ‘lisi‘, ‘lisi‘,
‘lisi@163.com‘, ‘2‘);
INSERT INTO employee VALUES (‘3‘, ‘wangwu‘, ‘wangwu‘,
‘wangwu@126.com‘, ‘3‘);
INSERT INTO employee VALUES (‘4‘, ‘lingjie‘,
‘lingjie‘, ‘lingjie@126.com‘, ‘4‘);
INSERT INTO employee VALUES (‘5‘,
‘taoconghai‘, ‘taoconghai‘, ‘lingjie@sina.com‘, ‘4‘);
INSERT INTO employee
VALUES (‘6‘, ‘lingjie‘, ‘lingjie‘, ‘lingjie@sina.com‘, ‘3‘);
INSERT INTO
employee VALUES (‘7‘, ‘lingyuan‘, ‘lingyuan‘, ‘lingyuan@163.com‘,
‘1‘);
INSERT INTO employee VALUES (‘8‘, ‘lingjie‘, ‘lingjie‘,
‘lingjie@foxmail.com‘, ‘2‘);
INSERT INTO employee VALUES (‘9‘, ‘linghui‘,
‘linghui‘, ‘linghui@sina.com‘, ‘4‘);
INSERT INTO employee VALUES (‘10‘,
‘zhangguangyuan‘, ‘zhangguangyuan‘, ‘zhangguangyuan@126.com‘, ‘1‘);
INSERT
INTO employee VALUES (‘11‘, ‘zhanglongfei‘, ‘zhanglongfei‘,
‘zhanglongfei@163.com‘, ‘4‘);
INSERT INTO employee VALUES (‘12‘, ‘liuxiaoqi‘,
‘liuxiaoqi‘, ‘liuxiaoqi@sina.com‘, ‘3‘);
INSERT INTO employee VALUES (‘13‘,
‘liufeifei‘, ‘liufeifei‘, ‘liufeifei@foxmail.com‘, ‘2‘);
INSERT INTO employee
VALUES (‘14‘, ‘liujie‘, ‘liujie‘, ‘liujie@sina.com‘, ‘2‘);
INSERT INTO
employee VALUES (‘15‘, ‘zhuwencheng‘, ‘zhuwencheng‘, ‘zhuwencheng@163.com‘,
‘3‘);
INSERT INTO employee VALUES (‘16‘, ‘yangyong‘, ‘yangyong‘,
‘yangyong@163.com‘, ‘2‘);
INSERT INTO employee VALUES (‘17‘, ‘zhangxuan‘,
‘zhangxuan‘, ‘zhangxuan@126.com‘, ‘3‘);
INSERT INTO employee VALUES (‘18‘,
‘zhoushu‘, ‘zhoushu‘, ‘zhoushu@126.com‘, ‘1‘);
INSERT INTO employee VALUES
(‘19‘, ‘xujiangbo‘, ‘xujiangbo‘, ‘xujiangbo@126.com‘, ‘4‘);
INSERT INTO
employee VALUES (‘20‘, ‘huangjunfeng‘, ‘huangjunfeng‘,
‘huangjunfeng@foxmail.com‘, ‘2‘);
INSERT INTO employee VALUES (‘21‘,
‘wangwei‘, ‘wangwei‘, ‘wangwei@126.com‘, ‘2‘);
INSERT INTO employee VALUES
(‘22‘, ‘caogaowang‘, ‘caogaowang‘, ‘caogaowang@126.com‘, ‘4‘);
INSERT INTO
employee VALUES (‘23‘, ‘wangfang‘, ‘wangfang‘, ‘wangfang@foxmail.com‘,
‘3‘);
INSERT INTO employee VALUES (‘24‘, ‘lingjie‘, ‘lingjie‘,
‘lingjie@163.com‘, ‘4‘);
INSERT INTO employee VALUES (‘25‘, ‘lingjie‘,
‘lingjie‘, ‘lingjie@163.com‘, ‘1‘);
INSERT INTO employee VALUES (‘26‘,
‘lingjie‘, ‘lingjie‘, ‘lingjie@foxmail.com‘, ‘4‘);
INSERT INTO employee
VALUES (‘27‘, ‘lingjie‘, ‘lingjie‘, ‘lingjie@163.com‘, ‘1‘);
INSERT INTO
employee VALUES (‘28‘, ‘lingjie‘, ‘lingjie‘, ‘lingjie@foxmail.com‘,
‘4‘);
INSERT INTO employee VALUES (‘29‘, ‘lingjie‘, ‘lingjie‘,
‘lingjie@163.com‘, ‘2‘);
INSERT INTO employee VALUES (‘30‘, ‘lingjie‘,
‘lingjie‘, ‘lingjie@foxmail.com‘, ‘3‘);
INSERT INTO employee VALUES (‘31‘,
‘lingjie‘, ‘lingjie‘, ‘lingjie@163.com‘, ‘4‘);
INSERT INTO employee VALUES
(‘32‘, ‘lingjie‘, ‘lingjie‘, ‘lingjie@foxmail.com‘, ‘4‘);
INSERT INTO
employee VALUES (‘33‘, ‘liwei‘, ‘liwei‘, ‘liwei@163.com‘, ‘4‘);
INSERT INTO
employee VALUES (‘34‘, ‘fuwanyin‘, ‘fuwanyin‘, ‘fuwanyin@163.com‘,
‘1‘);
INSERT INTO employee VALUES (‘35‘, ‘gaobaoqiang‘, ‘gaobaoqiang‘,
‘gaobaoqiang@foxmail.com‘, ‘4‘);
INSERT INTO employee VALUES (‘36‘,
‘wangliqiu‘, ‘wangliqiu‘, ‘wangliqiu@163.com‘, ‘1‘);
INSERT INTO employee
VALUES (‘37‘, ‘wangliang‘, ‘wangliang‘, ‘wangliang@foxmail.com‘, ‘4‘);
INSERT
INTO employee VALUES (‘38‘, ‘taojingying‘, ‘taojingying‘, ‘taojingying@163.com‘,
‘2‘);
INSERT INTO employee VALUES (‘39‘, ‘wanglihua‘, ‘wanglihua‘,
‘wanglihua@foxmail.com‘, ‘3‘);
INSERT INTO employee VALUES (‘40‘, ‘zhujie‘,
‘zhujie‘, ‘zhujie@163.com‘, ‘4‘);
INSERT INTO employee VALUES (‘41‘,
‘wangruihuan‘, ‘wangruihuan‘, ‘wangruihuan@foxmail.com‘, ‘4‘);
INSERT INTO
employee VALUES (‘42‘, ‘marry‘, ‘marry‘, ‘marry@163.com‘, ‘2‘);
commit;
--提交
原文地址:http://www.cnblogs.com/sunn3d/p/SQL.html