lushuaiyin的博客
lushuaiyin · 共 1200 篇文章
oracle字符串连接函数,||使两个或多个字段拼成一个字段
select t.id, case when t.id is not null then t.work_score||t.sort end haoming from stu_workinfo t select t.id, case when t.id is not null then concat(t.work_score,t.sort) end haomingddd from stu_workinfo t 在查询时往往需要拼字符串,在程序拼是容易想到的方法,但有时很不方便, 或者拼完以后程序又需要拼之前的字段,这样再拆字符串就很麻烦了。 用sql解决最多多出一个字段,这是你需要的,并不影响…
2012-02-06 15:00 · 评论(0)
oracle字符串连接函数,||使两个或多个字段拼成一个字段
在查询时往往需要拼字符串,在程序拼是容易想到的方法,但有时很不方便, 或者拼完以后程序又需要拼之前的字段,这样再拆字符串就很麻烦了。 用sql解决最多多出一个字段,这是你需要的,并不影响其他字段。 从这里我们还可以有其他很多品字段的方法,自己可以尝试着学习 select k.stucode,k.codename from ( select b.STUCODE stucodeb,b.STUDENT_NAME, case when b.STUCODE is not null then b.STUCODE||'-'||b.STUDENT_NAME end codename ,c.stucode,c…
2012-02-06 15:00 · 评论(0)
自己写的批处理例子供学习使用
aa.bat内容: echo off rem haha set path=e:\ee e: echo %path% cd %path% echo hehe goto gg2 :gg echo gghere :gg2 echo gghereeee222 call %path%\bb.bat set ddd=%date% echo %ddd% echo %ddd:~0,10% rem 默认全部 echo %ddd:~0% set ttt=%time% echo %ttt% echo %ttt:~0,8% rem 默认全部 echo %ttt:~0% @ echo gegegg pause 在e:…
2012-01-29 13:26 · 评论(0)
自己写的批处理例子供学习使用
aa.bat内容: echo off rem haha set path=e:\ee e: echo %path% cd %path% echo hehe goto gg2 :gg echo gghere :gg2 echo gghereeee222 call %path%\bb.bat set ddd=%date% echo %ddd% echo %ddd:~0,10% rem 默认全部 echo %ddd:~0% set ttt=%time% echo %ttt% echo %ttt:~0,8% rem 默认全部 echo %ttt:~0% @ echo gegegg pause 在e:…
2012-01-29 13:26 · 评论(0)
自己写的批处理例子供学习使用
aa.bat内容: 在e:\ee下有bb.bat文件,内容如下: 从效果可看出几点体会: 1.echo off 把命令行显示关闭了,但在调用其他bat文件时只要打开 echo on, 就会一直显示命令行。 @ echo gegegg 中@相当于echo off ,只不过他只是对本行管用! 2.变量的声明 set path=e:\ee 日期变量的声明,可不声明直接用 set ddd=%date% set ttt=%time% 3.变量的使用 cd %path% call %path%\bb.bat echo %ddd% echo %ddd:~0,10% echo %ddd:~0% echo %…
2012-01-29 13:26 · 评论(0)
jquery ajax json 实例(文本框,下拉框操作)
package com.ygw.stu.stuser.ta.json; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.regex.*; import net.sf.json.JSONArray; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionSupport; import…
2011-12-31 11:47 · 评论(0)
jquery ajax json 实例(文本框,下拉框操作)
package com.ygw.stu.stuser.ta.json; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.regex.*; import net.sf.json.JSONArray; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionSupport; import…
2011-12-31 11:47 · 评论(0)
jquery ajax json 实例(文本框,下拉框操作)
2011-12-31 11:47 · 评论(0)
jquery select下拉框操作
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#ss").change(function(){ var checkText=$("#ss").find("option:selected").text(); var checkValue=$("#ss").val(); alert(checkText);alert(checkValue); $("#sele…
2011-12-31 11:24 · 评论(0)
jquery select下拉框操作
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#ss").change(function(){ var checkText=$("#ss").find("option:selected").text(); var checkValue=$("#ss").val(); alert(checkText);alert(checkValue); $("#sele…
2011-12-31 11:24 · 评论(0)
jquery select下拉框操作
2011-12-31 11:24 · 评论(0)
jQuery给控件赋值....
1.jQuery给span取值:$("#id").html(); 2.jQuery给input取值:$("#id").val(); 3.jQuery给textarea取值:$("#id").val(); 4.jQuery给radio取值(非主创): 今天写Js的时候发现利用jquery取不到radio的当前值,上网Google下,发现网上的解决方案都是依托于1.2版本的,jquery的1.3版本已经去掉的属性选择器@符号。 (1.2)以前的版本对于radio取当前值的方式: $("input[@type=radio][@checked]") 把@去掉发现能得到object,但是取到的当前值不…
2011-12-31 10:11 · 评论(0)