You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-04-08 22:55:54
阅读次数:
142
题目:
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array....
分类:
其他好文 时间:
2015-04-08 21:37:53
阅读次数:
88
一、数据库字段名与实体类属性名不相同问题
1.1 准备数据表和数据
CREATE TABLE orders(
order_id INT PRIMARY KEY AUTO_INCREMENT,
order_no VARCHAR(20),
order_price FLOAT
);
INSERT INTO orders(order_no, order_price) VALUES('aaaa'...
分类:
其他好文 时间:
2015-04-08 21:34:14
阅读次数:
224
描述: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin...
分类:
其他好文 时间:
2015-04-08 21:15:14
阅读次数:
107
for((i=91;i>=1;i--));
do
dt=`date +‘%Y%m%d‘ -d"-${i} days"`;
if [ "$dt" = "20150309" ]; then
break;
fi
SQL=‘SELECT `id` FROM `l_pro_index_‘${dt}‘` ORDER BY `id` ASC LIMIT 1;‘
...
分类:
数据库 时间:
2015-04-08 20:04:04
阅读次数:
169
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2015-04-08 15:07:05
阅读次数:
161
题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the arr...
分类:
其他好文 时间:
2015-04-08 15:05:04
阅读次数:
103
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num...
分类:
数据库 时间:
2015-04-08 13:04:58
阅读次数:
181
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num...
分类:
数据库 时间:
2015-04-08 12:29:20
阅读次数:
163
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num...
分类:
数据库 时间:
2015-04-08 10:39:44
阅读次数:
148