在有些情况下我们需要按指定顺序输出数据,比如选择了ID in(3,1,2,5,4)我们希望按这个3,1,2,5,4的顺序输出,这样只使用order by ID是无法实现的,但是我们可以使用order by charindex(','+convert(varchar,ID)+',',',3,1,2,5...
分类:
数据库 时间:
2014-07-03 11:00:26
阅读次数:
352
Linux对Apache服务器中的httpd.conf进行如下配置(/etc/httpd/conf/httpd.conf)修改Apache中Httpd.conf文件,添加如下代码(该文件中都有,只要取消注释就好了,在文件中903行处) SetHandler server-status Order d...
分类:
其他好文 时间:
2014-07-03 09:49:59
阅读次数:
213
有一个大胆的想法,自己写个数据库。1.先从最简单的建表,删除表功能写起。2.IUD操作。Insert/Update/Delete.3.支持索引4.支持查询,SELECT5.支持排序,ORDER BY6.优化器,初步的解析功能,语义分析,语法分析7.实现Buffer Pool功能8.实现日志功能,在D...
分类:
数据库 时间:
2014-07-02 10:16:38
阅读次数:
812
在数据库中我们经常用sql语句对表进行简单的统计排序,对于日期字段,我们可以分别提出来日期中的年、月、日,分别进行group,order。...
分类:
数据库 时间:
2014-07-02 07:49:41
阅读次数:
331
??
创建销售订单(R12.2.3)
--US
Program:Order Import
Short Name:OEOIMP
Application:Order Management
Executable:Order Import
--ZHS
程序:订单导入
简称:OEOIMP
应用产品:订单管理
可执行名称:Order Import
PLSQL调用...
分类:
其他好文 时间:
2014-07-02 07:02:38
阅读次数:
315
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....
分类:
其他好文 时间:
2014-07-01 15:22:44
阅读次数:
140
一本被人反复提及的书《哪儿来的天才》中说过,大部分所谓的天才都是通过反复的刻意练习得到的。当你的练习时间达到10000小时以后,你就会成为该领域的专家。
最近在学习rails如何实现RESTful Web Service。自己想给自己设计一个练习的模板,进行反复练习。开发过程采用的是TDD的方式进行开发。
练习背景:
我们涉及三个Domain对象,Products、Order...
分类:
其他好文 时间:
2014-07-01 14:31:36
阅读次数:
213
题目:Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,...
分类:
其他好文 时间:
2014-07-01 12:44:09
阅读次数:
199
题目:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For ...
分类:
其他好文 时间:
2014-07-01 12:26:07
阅读次数:
215
题目
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 digit. Add the two numbers and return it a...
分类:
其他好文 时间:
2014-07-01 09:11:07
阅读次数:
206