- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 sql统计查询
select stuid as 学号,name as 姓名, sum(case when subject=语文 then score else 0 end) as 语文, sum(case when subject=数学 then score else 0 end) as 数学, sum(case when subject=英语 then score els
2009-06-20 23:42:00 992
原创 java以流的形式写数据到Oracle的clob字段。
public void importMoban(TrainTest test) { String testDesc = test.getTestDesc2(); String answer = test.getAnswer2(); Session s = getHibernateTemplate().getSessionFactory().openSession(); Transactio
2009-06-20 23:38:00 877
原创 Clob类型中读写数据
/*** * * 2009-4-21 * Administrator * @param clob * @return * @throws Exception * @说明:从clob类型中读取数据 */ public String ReadDataFromClob(Clob clob) throws Exception { StringBuffer content = new
2009-06-20 23:36:00 657
原创 Oracle的Clob字段设置为String类型
public List testClobHelper(List list) throws Exception{ DAOUtils util = new DAOUtils(); String description = ""; String answer =""; /**将Clob字段设置为String类型,便于界面展示*/ for (TrainTest test : list) {
2009-06-20 23:35:00 821
原创 js取select的text值
function chk(){ var obj = document.getElementById("sel"); var strsel = obj.options[obj.selectedIndex].text; if (confirm("确定要选择"+strsel+"吗?")){ }else{ } } a001 a002 a003
2009-06-20 23:32:00 608
原创 考试倒计时计时器
var timer = setInterval("CountDown()",1000); var maxtime = $("#mytime").val()*60; //一个小时,按秒计算,自己调整! function CountDown(){ if(maxtime>=0){ minutes = Math.floor(maxtime/60); seconds
2009-06-20 23:30:00 1092
原创 利用Javascript取和设FCKeditor值
// 获取编辑器中HTML内容function getEditorHTMLContents(EditorName) { var oEditor = FCKeditorAPI.GetInstance(EditorName); return(oEditor.GetXHTML(true)); }// 获取编辑器中文字内容function getEditorTextContents(E
2009-06-20 23:29:00 1253
原创 设置fckeditor为只读
//设置fckeditor为只读function FCKeditor_OnComplete(editorInstance) { editorInstance.EditorDocument.body.disabled = true; editorInstance.EditorWindow.parent.document.getElementById
2009-06-20 23:27:00 6033 3
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人