- 浏览: 11995 次
- 性别:
- 来自: 北京
最新评论
文章列表
简单的限制输入数字的JS
- 博客分类:
- js
<input name='frequency' onkeypress="event.returnValue=checkCode();"/>
function checkCode(){
return ((event.keyCode>=48)&&(event.keyCode<=57));
}
DECODE(TO_CHAR(MOD(a.percnt, 1)),
'0.00',
TO_CHAR(a.percnt * 100) || '%',
TO_CHAR(ROUND(a.percnt * 100, 2), '99990.00') || '%') percnt,
create or replace type array_str as table of varchar2(1000);
create or replace procedure demo_array(
data in array_str
) is
begin
for v in (select column_value from table(data)) loop
dbms_output.put_line(v.column_value);
end loop;
end demo_array;
- 2009-12-04 17:53
- 浏览 1435
- 评论(0)
一直不太清楚varStatus中index 和count的用法,尤其是下边一段代码:
<c:forEach var ="i" begin="1" end ="20" varStatus="status">
${i } ${status.index }<br>
</c:forEach>
status.index与count的输出结果是一样的。
查看了下源代码发现:
public int getIndex() {
...
SELECT LogID,UserID,LogTime,Url,Description,(case OperateType when OperateType = 0 then '新增' when OperateType=1 then '修改' else '删除' end case) FROM LOG
1. case
SELECT LogID,UserID,LogTime,Url,Description,(
case
when OperateType = 0
then '新增'
when OperateType=1
then '修改'
...
- 2009-12-01 11:15
- 浏览 820
- 评论(0)