- 浏览: 398628 次
- 性别:
- 来自: 上海
-
最新评论
-
Trying:
mysql会怎样呢?编程时,到底要不要排序呢?听说排序会对性能 ...
sql中没有order by,是否存在默认排序 -
yanwushu:
CASE WHEN 有两种表达式写法: ...
oracle case when的用法 -
Matol:
ok,不错的
java去除字符串中的空格、回车、换行符、制表符 -
jianxia801:
现在天下文章一大抄;实际没有这个fromString方法:准确 ...
JSON与JAVA的数据转换--String->Bean -
春隆隆:
精辟
java去除字符串中的空格、回车、换行符、制表符
文章列表
use for(Iterator it = t.iterator(); it.hasNext();){
if(((Integer)it.next()).intValue() == 2){
it.remove();
}
}
to resolve ConcurrentModificationException
在HTML里,颜色有两种表示方式。一种是用颜色名称表示,比如blue表示蓝色。另外一种是用16进制的数值表示RGB的颜色值。RGB是 Red,Green,Blue意思,RGB每个原色的最小值是0,最大值是255,如果换算成16进制表示,就是(#00),(#FF)。比如白色的 RGB(255,255,255),就用#FFFFFF表示;还有黑色的RGB(0,0,0),就用#000000表示。
注:在W3C制定的HTML 4.0标准中,只有16种颜色可以用颜色名称表示(aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive ...
<p>标签 或者是<br/>都可以
CSS控制Table单元格强制换行与强制不换行
我们知道Div的换行和不换行的css写法。但对于表格单元格只知道一个属性nowrap可以使其不换行。
近日有此需要,但发现加上nowrap在某些情况下还是会换行!无奈,没有一个强制不换行的方法吗?
用CSS实现Table单元格数据自动换行或不换行的实现方法:
1、强制换行:
<style type="text/css">
.AutoNewline
{
Word-break: break-all;/*必须*/
}
</sty ...
db2日期操作函数
当前时间:
CURRENT DATE
CURRENT TIME
CURRENT TIMESTAMP
获取时间的年、月、日、时、分、秒及微秒各部分:
YEAR (current timestamp)
MONTH (current timestamp)
DAY (current timestamp)
HOUR (current timestamp)
MINUTE (current timestamp)
SECOND (current timestamp)
MICROSECOND (current timest ...
DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=2
违反了唯一性约束
SQLCODE: -206, SQLSTATE: 42703 column does not exist
数组转Collection
使用Apache Jakarta Commons Collections:
import org.apache.commons.collections.CollectionUtils;
String[] strArray = {"aaa", "bbb", "ccc"};
List strList = new ArrayList();
Set strSet = new HashSet();
CollectionUtils.addAll(strList, strArra ...
only a type can be imported: xxxx.object resolves to a package
solution:
right click project
select properties
J2ee module dependencies
web libraries select all
select count(asset.id), FASSETPLANID from asset asset
inner join assetplan
on FASSETPLANID = assetplan.id
group by FASSETPLANID
order by count(asset.id) desc
Eclipse settings:
Basic settings:
Text file encoding UTF-8 (General > Workspace)
Set SUN JRE 6 as the default JRE (Java > Installed JREs)
Compiler compliance level 1.6 (Java > Compiler)
Import eclipse code templates:
Get code template from Content Facotry code template, using (Java->Co ...
将 grid中可编辑的元素设置成 readonly,
dijit.byId('outputAsset.grid').edit.cancel();
http://www.httpwatch.com/download/
db2cmd
db2stop force
db2start
快速执行下面的命令
db2 backup db BPEDB to C:\db(数据库的名字)
db2 restore db BPEDB from C:\issues\1.4\dbbackup13(目录名)
db2 -tf c:\xx.sql ( 执行sql文件)
SQL1117N 由于 ROLL-FORWARD PENDING,不能连接或激活数据库
1. 我修改参数:
db2 update db cfg for sample using LOGRETAIN ON
2. force applications all
...
var charfield=document.getElementById(searchAsset.gridId + ".toolbar.Search.TooltipDialog");
charfield.onkeydown = function(e){
var e=window.event || e;
if (e.keyCode == 9) {
//var srcEle = e.srcElement || e.target;
//if (srcEle.id == 'searchAsset.status.all')
//alert(srcE ...
jsf readonly= 'true '
jsf readonly的字段提交的时候是不会执行set方法的