2013年3月21日

同步linux时间

摘要: 中国(国家授时中心):210.72.145.44其他NTP服务器地址:http://www.linuxidc.com/Linux/2012-02/55225.htm 阅读全文
posted @ 2013-03-21 16:58 rslblogjava 阅读(122) 评论(0) 推荐(0) 编辑
2013年3月20日

为一个数据库 组合表中的一个字段和字符串,更新到另一个字段。

摘要: update shop set shopcode = CONCAT("XX",shopid) where shopid <10;组合表中的一个字段和字符串,更新到另一个字段。 阅读全文
posted @ 2013-03-20 11:49 rslblogjava 阅读(176) 评论(0) 推荐(0) 编辑
2013年3月18日

MyEclipse安装 SVN与中如何修改SVN的地址 与 MyEclipse中如何修改SVN的用户密码

摘要: 2013-03-1815:46:35MyEclipse安装 SVN方法一:在线安装1.打开HELP》MyEclipse ConfigurationCenter。切换到SoftWare标签页。2.点击Add Site 打开对话框,在对话框Name输入Svn,URL中输入:http://subclipse.tigris.org/update_1.6.x3.在左边栏中找到Personal Site中找到SVN展开。将Core SVNKit Library和Optional JNALibrary添加(右键Add to Profile),Subclipse下面的Subclipse Integration 阅读全文
posted @ 2013-03-18 15:52 rslblogjava 阅读(2034) 评论(0) 推荐(0) 编辑
2013年3月17日

关于页头页脚引入的方法

摘要: 2013-03-1714:45:421,客户要求使用ssi技术,这得需要打开tomcat的servlet相关的sii可以在页面直接引入页头,<!--#include file="SSI_Insert.html"-->2,使用jsp的<%@include file=""%>3,在服务器段使用js将要使用的页头用一个变量组成,别的服务器可以跨域引用4,用java的URL返回给jsp页面import java.net.*;import java.io.*;class Foot{ public static void main(Strin 阅读全文
posted @ 2013-03-17 14:52 rslblogjava 阅读(416) 评论(0) 推荐(0) 编辑
2013年3月15日

mysql 截取字符串

摘要: 建库:CREATE TABLE temp123 (val varchar(100));插数据:INSERT INTO temp123 VALUES ('123||http://localhost:9999/Upload/Images/ask/2011/7/29/129564046197968750.jpg||456');截取字符串 :SELECT CONCAT( SUBSTRING_INDEX(val, '||', 1),SUBSTRING_INDEX(val, '||', -1)) AS RESULT FROM temp123;结果:返回123 阅读全文
posted @ 2013-03-15 19:47 rslblogjava 阅读(187) 评论(0) 推荐(0) 编辑

查询数据库中like和 not in 一起使用

摘要: select * from Main where maistatus like '%1%' and maistatus not in (select maistatus from Main where maistatus like '%10%' or maistatus like '%11%'); 阅读全文
posted @ 2013-03-15 14:13 rslblogjava 阅读(829) 评论(0) 推荐(0) 编辑
2013年3月12日

excel导出时要导入其他对象的内容,可以再对象和配置文件中更改

摘要: cccc private String infotxt; private String resulttype; public String getResulttype() { return resulttype; } public void setResulttype(String resulttype) { this.resulttype = resulttype; } public String getInfotxt() { return infotxt; } public void s... 阅读全文
posted @ 2013-03-12 12:40 rslblogjava 阅读(246) 评论(0) 推荐(0) 编辑

Error Code: 1267. Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='0.001 sec

摘要: Mysql查询报错Error Code: 1267. Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='0.001 sec提示两个表的编码不一致,需要进行转换将比较等式一边进行字符串转换,如改为ALTER TABLE 表名 CONVERT TO CHARACTERSET utf8 collate utf8_unicode_ci 阅读全文
posted @ 2013-03-12 10:52 rslblogjava 阅读(985) 评论(0) 推荐(0) 编辑
2013年3月7日

更改eclipse中的工程名称时2013-03-07

摘要: 当要更改eclipse中的工程名称时:2013-03-0710:19:04方法一,可以》右键项目》选择Web Content Setting》修改名称方法二,在项目中用notepad搜索你的工程名,把eclipse中的配置文件您的工程名修改也可以 阅读全文
posted @ 2013-03-07 10:19 rslblogjava 阅读(182) 评论(0) 推荐(0) 编辑
2013年3月6日

java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??

摘要: 开两个tomcat时出现异常:java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í?? at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:446) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) at org.apache.coyote.AbstractProto 阅读全文
posted @ 2013-03-06 17:27 rslblogjava 阅读(538) 评论(0) 推荐(0) 编辑