最近项目有一个需求,从订单表查询出每个客户最近一条订单记录。数据库表结构如下图 SELECT * FROM ( select ROW_NUMBER()over(partition by [custid] order by [orderdate] d...
分类:
数据库 时间:
2015-05-20 12:55:35
阅读次数:
272
从表里面导出数据XML:-- exportdeclare @xml xml set @xml = (select * from (select TableName = 'Schema', xmlData = ( select * from [Schema] where id = 337...
分类:
数据库 时间:
2015-05-20 12:37:54
阅读次数:
147
#encoding:UTF-8 import urllib.parse import urllib.request import base64 import re import sys import time from random import sample import codecs from html.parser import HTMLParser log = ‘gogogo.txt...
分类:
编程语言 时间:
2015-05-20 11:32:48
阅读次数:
169
set?@XX=‘‘;
SELECT
@XX?:=?CONCAT(
@XX,
????ID?,
‘,‘
)
FROM
(SELECT?DISTINCT?ID?FROM?TX)?A;
set?@YY?=??CONCAT(‘SELECT?TX.*,‘,LEFT(@XX,LENGTH(@XX)-1),‘??FROM?TX?‘);?
P...
分类:
其他好文 时间:
2015-05-20 11:31:26
阅读次数:
111
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/45868027
Remove all elements from a linked list of integers that have value val.
Example
Given: 1 --> 2 -->...
分类:
其他好文 时间:
2015-05-20 11:19:13
阅读次数:
120
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->...
分类:
编程语言 时间:
2015-05-20 11:10:04
阅读次数:
280
SQL> select * from v$version where rownum=1;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Prod...
分类:
其他好文 时间:
2015-05-20 09:51:24
阅读次数:
179
题目:leetcode
Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board.
Each word must be constructed from letters of sequentially adjacen...
分类:
其他好文 时间:
2015-05-20 09:48:31
阅读次数:
164
#!/usr/bin/env python
#coding:utf-8
import psutil
import time
import sys
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-t", "--time", dest="time",
he...
分类:
编程语言 时间:
2015-05-20 09:44:16
阅读次数:
147
__author__ = 'Steve'from sqlalchemy import create_enginefrom sqlalchemy.orm import sessionmakerfrom sqlalchemy.ext.declarative import declarative_base...
分类:
数据库 时间:
2015-05-20 08:14:22
阅读次数:
158