今天在看一个遗留系统的数据表的时候发现平时查找的视图是FULL OUT JOIN的,导致平时的数据记录要进行一些限制性处理,其实也可以设置视图各表为右外连接并在视图上设置各列的排序和筛选条件就可以达到效果。联接条件可在FROM或WHERE子句中指定,建议在FROM子句中指定联接条件。WHERE和HA...
分类:
数据库 时间:
2014-07-30 09:55:23
阅读次数:
284
importjava.util.Arrays;
importjava.util.Scanner;
publicclassArrayUtils{
//获取数组的最大值
publicstaticvoidmain(String[]args){
//int[]arr=newint[]{12,4,76,-9,0,44,-87,66};
intnum;
Scanners;
while(true){
try{
System.out.println("请输入数组元素个数:");
s=ne..
分类:
其他好文 时间:
2014-07-30 03:25:24
阅读次数:
266
是在同一台服务器的同一用户下,部署了两个相同的项目。当初偷懒赶时间,只是把原来的拷贝了一下,改了下startup的端口号。平时都是只起一个,今天因为各自都在用,所以两个都起了,结果发现,两个不能同时起。catalina.out日志中记录了tomcat启动失败的原因,是因为shutdown端口已经被另...
分类:
其他好文 时间:
2014-07-29 20:46:05
阅读次数:
332
输入需要复制的目标文件夹输入需要复制到的目的文件夹publicclassCopyDir{
staticScannerin=newScanner(System.in);
staticFiledir=null;
publicstaticvoidmain(String[]args){
System.out.println("请输入需要复制的目标文件夹的路径:");
Stringneed=in.nextLine();
..
分类:
其他好文 时间:
2014-07-29 18:25:43
阅读次数:
195
cigarettes
时间限制:3000 ms | 内存限制:65535 KB
难度:2
描述
Tom has many cigarettes. We hypothesized that he has n cigarettes and smokes them
one by one keeping all the butts. Out of k > 1 butts h...
分类:
其他好文 时间:
2014-07-29 17:49:12
阅读次数:
158
String [] word = {"hello", "world", "java"};
String [] dest = new String[3];
dest = words;
words[0] = "nihao";
for(String t: dest){
System.out.println(t)...
分类:
编程语言 时间:
2014-07-29 16:13:19
阅读次数:
196
队列(queue)
队列是一种先进先出(first in first out,FIFO)的线性表。它只允许在表的一端(队尾/rear)插入元素,而在另一端(队头/front)删除元素。插入操作称为入队或进队,删除操作称为出队或离队。队列示意图如下:
1、 顺序队
队列的顺序存储结构需要使用一个数组和两个整型变量来实现,数组用于存储队列中的所有元素,两个整型变量分别用于存储队头元素...
分类:
其他好文 时间:
2014-07-29 15:12:48
阅读次数:
251
/*
ID: lucien23
PROG: hamming
LANG: C++
*/
#include
#include
#include
using namespace std;
int main()
{
ifstream infile("hamming.in");
ofstream outfile("hamming.out");
if(!infile || !outfile)
...
分类:
其他好文 时间:
2014-07-29 14:54:58
阅读次数:
169
/*
ID: lucien23
PROG: preface
LANG: C++
*/
#include
#include
#include
#include
using namespace std;
int main()
{
ifstream infile("preface.in");
ofstream outfile("preface.out");
if(!infile || ...
分类:
其他好文 时间:
2014-07-29 14:54:28
阅读次数:
177
A stack is collection that implements the last-in-first-out protocal.This means that the only access object in the collections is the last one thatwas inserted.The fundamental operations of a stack a...
分类:
其他好文 时间:
2014-07-29 14:53:28
阅读次数:
218