`
qmug
  • 浏览: 197495 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
上下移 脚本代码 参考版 有 N多种方法 请各位酌情 挑选 应用。 function Moveup(listObj) { //将列表项往上移动 //var listObj = document.getElementById("agent"); for(var i = 0; i < listObj.options.length; i++) { //遍历列表项 if (listObj.options[i].selected && listObj.o ...
menu.js文件 function selChange(selValue) { if (selValue == 0) { document.getElementById("manager1").style.display = ""; document.getElementById("agent1").style.display = "none"; } else { document.getElementById("manager1").style.display ...
Mysql命令集锦 MySQL常用命令 1、MySQL常用命令     create database name; 创建数据库     use databasename; 选择数据库     drop database name 直接删除数据库,不提醒     show tables; 显示表     describe tablename; 表的详细描述     selec ...

where 1 = 1

    博客分类:
  • J2EE
[转]sql语句中where 1=1的作用 2008-08-27 09:22 where 1=1 最近看到很多sql里用到where 1=1,原来觉得这没用嘛,但是又想到如果没用为什么要写呢?于是在网上 查了查,在这里就浅谈一下: 1=1 永真, 1<>1 永假。 1<>1 的用处: 用于只取结构不取数据的场合 例如: create table table_temp tablespace tbs_temp as select * from table_ori where 1<>1 建成一个与table_ori 结构相同的表table_temp,但是不要t ...
注册码:91PIR4SS6BV0R7305784 或 55KO17SUMVVQR4300175 PDF 破解软件注册码
链接传值:<a href="page.jsp?ID=<%=goodsID%>"Hello</a> 按钮传值:<input name="name" type="Button"    onclick="window.location.href='page.jsp?ID=<%=goodsID%>' " value="Hello" /> 点击Hello链接(或按钮)后直接跳到page.jsp页面中去,并且把本页面中的变量goodsID传过去,在pa ...
select.html 可以上下移  左右移 的按钮的功能 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" ...
888.html 这个例子可以直接使用。需要注意的是里面的select  option中的 1  2  的数据是从数据库中取得的。详情请看 博客中相关 帖子 <%@ page language="java" pageEncoding="GBK"%> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <%@ taglib uri="http://struts.apache.or ...
这个例子是上移下移功能 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="te ...
实际工作中连接池的应用 在 web.xml中 <resource-ref> <description>SQL Server Datasource</description> <res-ref-name>jdbc/DBUtil</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> < ...
这个方法是用来跳转action最后到页面的。 function toAdd() { window.location.href("tellist.do?method=toAdd"); } 这个方法是用来提交的。可以带值 function toUpdate(id,tel,area) { var method = document.getElementById("method"); method.value = "toUpdate"; var tid = document.getElementById ...
查询2个表比较然后做下拉菜单显示 这段代码是在Main.jsp中用来查询地区的 <select name="Qarea"> <option value=""> 全部 </option> <c:forEach var="typeArea" items="${requestScope.typeArea}" > <c:if test="${typeArea.ntId==requestScope.Qarea}"> < ...
关于注入机制的例子 在applicationContext.xml 文件中,把struts 注入到spring中 <!-- Dao Configuration --> <bean id="telListDAO" name="telListDAO" class="com.et.dao.impl.TelListDAO" abstract="false" singleton="true" lazy-init="default" autowire=&qu ...

笔记本

需要 整理的 例子  密码初始化 、日期 如果 大于1 年的才可以删除   24 小时之内的 才可以修改。

mysql 驱动文件

mysql 驱动文件
Global site tag (gtag.js) - Google Analytics