以前在做DBA时在DB里写过行转列,列转行的CODE.这两天做了一下测试用INFORMATICA来实现行列互换的功能。列转行的SQL 实现ENV: RMDBTABLE: SALES STORENAME QUARTER1 QUARTER2 QUARTER3 QUARTER4 STORE1 100 .....
分类:
其他好文 时间:
2015-04-13 15:55:19
阅读次数:
99
1,完整的监控脚本如下#!/bin/bash#web_status_code=`curl -o /dev/null -s -w "http_code:%{http_code}" http://yjszs.nudt.edu.cn/`#1,web_status_code=`curl -o /dev/nu...
分类:
数据库 时间:
2015-04-13 14:12:33
阅读次数:
157
SystemServer也是系统的一个重要的守护进程,从SystemServer的进程中,我们看到了系统的各种关键的Service的启动。
另外,根据前面的zygote的分析,我们知道了systemServer在android的启动过程中是肯定要启动的。
因为在init.rc里面,已经指定了要start-system-server = true.
那么在zygote中,我们看到了如下的code...
分类:
移动开发 时间:
2015-04-13 12:54:17
阅读次数:
526
#include
#include
#include
using namespace std;
int num_of_st;
void getdata(vector & v, int n)
{
if (!v.empty())
throw runtime_error("v empty");
int t;
for (int i = 0; i > t...
分类:
编程语言 时间:
2015-04-13 09:43:23
阅读次数:
189
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of ...
分类:
其他好文 时间:
2015-04-13 09:30:41
阅读次数:
102
第 0001 题:做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)?不知道用什么方法生成激活码比较靠谱,所以就用字母和数字的随机组合了。如果有更好的方法请告诉我:)生成的大概是这样子的:
0001.生成激活码.py#!/usr/bin/env python
#coding: utf-8...
分类:
编程语言 时间:
2015-04-13 01:45:27
阅读次数:
266
1、错误原因
Query:
DROP TRIGGER `insert_pcs_approve`
Error occured at:2015-04-12 13:37:32
Line no.:1
Error Code: 1360 - Trigger does not existQuery:
ALTER TABLE `t_pcs_berth`
MODIFY COLUMN `id` int(20)...
分类:
其他好文 时间:
2015-04-13 00:29:23
阅读次数:
170
近期学习MVC5+EF6,找到了Microsoft的原文,一个非常棒的系列,Getting Started with Entity Framework 6 Code First using MVC 5,网址:http://www.asp.net/mvc/overview/getting-starte...
分类:
Web程序 时间:
2015-04-13 00:12:12
阅读次数:
162
近期学习MVC5+EF6,找到了Microsoft的原文,一个非常棒的系列,Getting Started with Entity Framework 6 Code First using MVC 5,网址:http://www.asp.net/mvc/overview/getting-starte...
分类:
Web程序 时间:
2015-04-13 00:08:47
阅读次数:
244
近期学习MVC5+EF6,找到了Microsoft的原文,一个非常棒的系列,Getting Started with Entity Framework 6 Code First using MVC 5,网址:http://www.asp.net/mvc/overview/getting-starte...
分类:
Web程序 时间:
2015-04-13 00:04:56
阅读次数:
1102