摘要: 182. Duplicate Emails Write a SQL query to find all duplicate emails in a table named Person. + + +| Id | Email |+ + +| 1 | a@b.com || 2 | c@d.com || 阅读全文
posted @ 2016-07-14 20:35 Lorryrui 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Table: Person + + +| Column Name | Type |+ + +| PersonId | int || FirstName | varchar || LastName | varchar |+ + +PersonId is the primary key column f 阅读全文
posted @ 2016-07-14 20:34 Lorryrui 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 176. Second Highest Salary Write a SQL query to get the second highest salary from the Employee table. + + +| Id | Salary |+ + +| 1 | 100 || 2 | 200 | 阅读全文
posted @ 2016-07-14 18:37 Lorryrui 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 195. Tenth Line For example, assume that file.txt has the following content: Line 1Line 2Line 3Line 4Line 5Line 6Line 7Line 8Line 9Line 10Your script 阅读全文
posted @ 2016-07-14 08:40 Lorryrui 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.SELINUX和防火墙 #关闭SELINUX vi /etc/selinux/config SELINUX = disabled #防火墙 1)关闭防火墙 Centos6.5版本 service iptables stop#关闭防火墙 chkconfig iptables off#开机不启动 C 阅读全文
posted @ 2016-07-08 11:06 Lorryrui 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1)Zabbix的安装配置 1.安装步骤 首先要确保LAMP环境已经搭建好。具体安装步骤参考《zabbix 安装使用手册 .pdf》 2.配置过程中遇到的问题 问题:在windows主机(192.168.104.44)的虚拟机中安装centos系统(192.168.80.128),客户端是windo 阅读全文
posted @ 2016-07-07 17:52 Lorryrui 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 1)删除本地时间并设置时区为上海 rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 2)设置定时时间定时同步 a. yum -y install ntpdate ntp #安装ntp b. 设置定 阅读全文
posted @ 2016-07-07 16:47 Lorryrui 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.打开cmd,cd 到Oracle目录,如 D:\app\xty\product\11.2.0\dbhome_1\RDBMS\ADMIN2.sqlplus 用户名/密码@实例名,连接到数据库3.执行 @awrrpt.sql 回车 第一步输入类型:html第二步输入天数:如1,代表当天;如2,代表今 阅读全文
posted @ 2016-07-07 16:24 Lorryrui 阅读(175) 评论(0) 推荐(0) 编辑