update tbl1 a set (a.col1, a.col2) = (select b.col1, b.col2 from tbl2 b where a.key = b.key) where a.key in(select key from tbl2)
分类:
数据库 时间:
2014-08-31 18:39:11
阅读次数:
203
## Deny access to the entirety of your server's filesystem. You must# explicitly permit access to web content directories in other # blocks below.# .....
分类:
其他好文 时间:
2014-08-31 10:22:41
阅读次数:
193
关键字explicit可以禁止“单参数构造函数”被用于自动类型转换classStack{ explicitStack(intsize);};没有explicit的话Stacks=40;能编译通过而有explicit则不能,必需Stacks(40);即防止构造函数进行的隐式转换的发生
分类:
其他好文 时间:
2014-08-30 20:27:09
阅读次数:
169
需要使用join,例如select g.id,g.res_count,count(gr.r_id) cnt from mb_game_res gr left join mb_game g on gr.g_id = g.id group by gr.g_id order by cnt descupda...
分类:
数据库 时间:
2014-08-30 18:56:19
阅读次数:
243
update basplumain set dptid=1delete from basdept where id!=1insert into basdept (dptno,dptname)select dptno,dptname from lhflm update basdept set pid=...
分类:
其他好文 时间:
2014-08-30 17:40:09
阅读次数:
155
本文来自: 起点手机论坛 具体文章參考:http://www.qdppc.com/forum.php?mod=viewthread&tid=43751&fromuid=11、Android系统是什么?Android是Google公司于2007年公布的基于Linux的移动终端系统平台。之所以说是移动终...
分类:
移动开发 时间:
2014-08-30 17:35:59
阅读次数:
416
-- 数据透视 -- PIVOT: 行转列 SELECT * FROM ( SELECT N'张三' AS 姓名, N'语文' AS 课程,70 AS 分数 UNION SELECT N'张三' AS 姓名, N'数学' AS 课程,90 AS 分数 UNION SELECT N'李四' AS 姓名...
分类:
数据库 时间:
2014-08-29 23:55:18
阅读次数:
261
1、其实rails c 控制台每次读取的都是model里的文件且不会自动更新,所以增加字段时,要在在model文件里面先写上字段,然后重启rails c 才能查到该字段2、 增加字段: rails g migration add_column_to_model 字段名:类型 然后迁移任务, 之后想....
分类:
其他好文 时间:
2014-08-29 21:19:08
阅读次数:
202
注意使用的是keil5.11a自己根据开发指南写的一个IAP程序。在mini板上成功跑一个app。因为RB是128K的flash,所以将rom分割为 27K 1K 100K。其中27K 用来存储IAP。1K 用来存储一些信息,目前暂未使用到。100K就是app用的啦。 IAP程序的大致流程是这样的....
分类:
其他好文 时间:
2014-08-29 21:15:18
阅读次数:
229
svg 学习和体会 1:适用范围,支持html5的浏览器,ie9+,chrome等浏览器。
分类:
其他好文 时间:
2014-08-29 15:59:18
阅读次数:
172