随笔分类 -  java

摘要:记录下~~1 .mysql update 与 left join 一起使用联合多表更新数据UPDATE database1.table1 a LEFT JOIN database2.table2 b ON a.code=b.card_noSET a.status_id=b.member_status_id2.修改某个字段中字符 UPDATE t_membership t SET t.code=REPLACE(t.code,'LXC','JB') WHERE t.parent_id = 14 阅读全文
posted @ 2013-11-20 20:20 在那花开时节 阅读(83) 评论(0) 推荐(0)
摘要:MYSQL个二货,不能先select一张表的数据,然后update这张表,sql如下:update tab A set A.status=1 where A.id in (select id from tab where start_time>now()); 解决办法是欺骗这个二货,让他觉得没动过那张表,在外面包装一层。sql如下:update tab A set A.status=1 where A.id in (select B.id from(select id from tab where start_time>now()) B);来源:http://blog.sina.c 阅读全文
posted @ 2013-10-15 16:35 在那花开时节 阅读(318) 评论(0) 推荐(0)
摘要:Tomcat无法启动,报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory2010-08-09 15:58:46|分类:Tomcat|标签:julijavalangapacheorg|字号订阅前面一段时间看到Tomcat7.0发布了几个测试版,由于没有稳定,也就没有测试了,今天看到新闻,看到Tomcat7.0正式版已经发布了,到官网上下载下来,看看效果如何。< XMLNAMESPACE PREFIX ="O" />下面列出Tomcat 7的一些新特性介绍:◆Tomcat 7完全支 阅读全文
posted @ 2011-12-13 11:47 在那花开时节 阅读(622) 评论(0) 推荐(0)