一、 ROWID的概念存储了row在数据文件中的具体位置:64位 编码的数据,A-Z, a-z, 0-9, +, 和 /,row在数据块中的存储方式SELECT ROWID, last_name FROM hr.employees WHERE department_id = 20;比 如:OOOOO...
分类:
数据库 时间:
2015-05-14 13:48:54
阅读次数:
226
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, where in...
分类:
其他好文 时间:
2015-05-14 10:09:29
阅读次数:
131
1. 利用row_number()语法:select 字段1,.. row_number() over (order by 字段) as rowno from table where 条件 and rowno >(pageIndex-1)*pageSize and rowno (@pageIndex...
分类:
其他好文 时间:
2015-05-14 00:57:32
阅读次数:
176
There is a matrix containing at most 106
elements divided into r rows and c columns. Each element
has a location (x; y) where 1 x r, 1 y c. Initially, all the elements are zero. You need to...
分类:
其他好文 时间:
2015-05-13 23:18:45
阅读次数:
411
首先你要有一个pl/sql,其实没有也行,但是这数据库还是有一个可视化界面为好啊。
1.首先,以sys用户的身份登录PL/SQL
2.查询出你要更改的表的ID,以我本地的数据为例,我要改'FINACE'用户下'INCOME'这张表。注:ORACLE中的表要用大写。
select object_id
from all_objects
where owner = ...
分类:
数据库 时间:
2015-05-13 22:03:16
阅读次数:
231
题目Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.Above is a histogram where width of each ba...
分类:
其他好文 时间:
2015-05-13 19:52:46
阅读次数:
125
【查看mysql用户的初始密码】
如果是用的“市场镜像” 装过php环境的
使用
cat /你的安装环境/account.log 查看你的mysql 安装密码
一、mysql 部分的配置
【1.修改root密码】
update user set password=password('新密码') where user='root';
【2.修改用...
分类:
数据库 时间:
2015-05-13 19:51:57
阅读次数:
157
[1054] Unknown column 'xxxxx' in 'where clause'DROP TRIGGER IF EXISTS `delete_actdata`;
CREATE DEFINER=`secway`@`localhost` TRIGGER `delete_actdata`
BEFORE DELETE ON `actdata`
FOR EACH ROW
BEGIN
DEL...
分类:
数据库 时间:
2015-05-13 19:50:00
阅读次数:
160
--初始化数据
drop table test purge;
create table test as select * from dba_objects;
delete from test where object_id is null;
alter table test add constraint pk_test_object_id primary key(object_id);
...
分类:
数据库 时间:
2015-05-13 19:46:55
阅读次数:
248
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2015-05-13 19:34:33
阅读次数:
123