最近使用oraclede impdp工具全库导入数据库时,在数据库里面使用出现如下情况。SQL
state [null]; error code [17081]; 批处理中出现错误: ORA-00001: 违反唯一约束条件
(GDXAORCL.SYS_C0055359); nested except...
分类:
数据库 时间:
2014-05-27 00:46:55
阅读次数:
715
概述:try {
//执行的代码,其中可能有异常。一旦发现异常,则立即跳到catch执行。否则不会执行catch里面的内容 } catch {
//除非try里面执行代码发生了异常,否则这里的代码不会执行 } finally { //不管什么情况都会执行,包括try catch
里面用了return...
分类:
编程语言 时间:
2014-05-24 02:48:49
阅读次数:
702
先看我们怎么实现所有Activity展示的国际化,正常我们不会在原生态的setting中去实现,因为多数现在都是定制,我们也是,下面是我们自己的设置应用的语言切换实现功能代码:
try {
Class activityManagerNative = Class.forName("android.app.ActivityManagerNative");
Object am = a...
分类:
移动开发 时间:
2014-05-22 12:51:07
阅读次数:
890
你能保证你的程序不会出问题吗?
不能
当你的程序运行到某个地方发生了你不想要的结果,你是否想让它一错再错?
不想
你是否想让你的程序占着茅坑不拉屎?
不想
你是否想知道你的程序出错的原因?
想
看了了这4个问题之后,如果你的回答和我的一致,那么请看下文
trycatch finally的用法:
try
'你想要写的程序
catch
'捕获你想写的程...
分类:
Web程序 时间:
2014-05-22 11:47:21
阅读次数:
358
Gallery和swithcer联合使用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian...
分类:
其他好文 时间:
2014-05-22 11:19:05
阅读次数:
288
相对于VB而言,VB.NET中引入了许多特色。其中最吸引我的就是引入了结构化异常处理。虽然VB.NET仍然支持OnError
Goto类型的异常处理,但是这样做并不是很好。相比而言,结构化异常处理更加灵活,使用更加方便。我们应该充分利用VB.NET提供的结构化异常处理。
在VB.NET结构中的异常处理分为3个语句块。
(1)try块负责错误代码的捕获
(2)catch...
分类:
Web程序 时间:
2014-05-22 09:56:49
阅读次数:
214
从main()函数开始
public static void main(String [] args) {
VersionInfo.logVersion();
new HMasterCommandLine(HMaster.class).doMain(args);
}
public void doMain(String args[]) {
try {
...
分类:
其他好文 时间:
2014-05-22 09:31:11
阅读次数:
348
<!--
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the L...
分类:
移动开发 时间:
2014-05-22 08:41:44
阅读次数:
377
上联:no zuo no die why you try
下联:no try no high give me five
横批: let it go。
坑爹bug:
错误写法:
0 } ">true (最后一个大括号后多出一个空格,代码啥都不会输出)
正确写法: 0 }">true 正确写法 输出结果: true...
分类:
Web程序 时间:
2014-05-22 07:42:52
阅读次数:
355
题目:
Given an array of integers, every element appears
three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implem...
分类:
其他好文 时间:
2014-05-20 16:22:52
阅读次数:
241