exists (sql 返回结果集,为真) not exists (sql 不返回结果集,为真) 如下: 表A ID NAME 1 A1 2 A2 3 A3 表B ID AID NAME 1 1 B1 2 2 B2 3 2 B3 表A和表B是1对多的关系 A.ID => B.AID SELECT I ...
分类:
数据库 时间:
2016-05-25 00:30:15
阅读次数:
199
grep精准匹配catfile{"aid":45,"path":"p_w_upload/Mon_1112/2_1_5728040df3ab346.jpg"}想显示aid的值,也就是45grep-o-E‘"aid":[0-9]*‘filegrep对比文件cat1123cat21b3找出两个文件相同的内容grep-Ff1213找出1里面有,而2里面没有的grep-vFf21找出2里面有,而1里面没有的grep-..
分类:
其他好文 时间:
2016-05-03 14:42:51
阅读次数:
175
//产品store
window.product_store=Ext.create(‘Ext.data.Store‘,{
fields:[
‘id‘,
‘aid‘,
‘webid‘,
‘title‘,
‘kindlist‘,
‘attrid‘,
‘ishidden‘,
‘displayorder‘,
‘kindname‘,
‘attrname‘,
‘themelist‘,
‘iconlist‘,
‘modtime‘,
‘templet‘,
‘url‘,
‘finaldestid‘,
‘finaldest..
分类:
其他好文 时间:
2016-04-21 12:00:20
阅读次数:
226
继续并发专题~ 这次介绍CyclicBarrier:看一眼API的凝视: /** * A synchronization aid that allows a set of threads to all wait for * each other to reach a common barrier p ...
分类:
编程语言 时间:
2016-04-09 09:16:16
阅读次数:
229
内容页: <script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"type='text/javascript' langu ...
分类:
其他好文 时间:
2016-04-05 12:12:14
阅读次数:
115
枚举中位数+优先级队列预处理前x个数选n个最小和 ...
分类:
其他好文 时间:
2016-04-04 16:16:18
阅读次数:
129
POJ 2010 Moo University - Financial Aid 题目大意,从C头申请读书的牛中选出N头,这N头牛的需要的额外学费之和不能超过F,并且要使得这N头牛的中位数最大.若不存在,则输出-1(一开始因为没看见这个,wa了几次). 这个题的第一种做法就是用两个优先队列+贪心. 这 ...
分类:
其他好文 时间:
2016-04-03 14:26:11
阅读次数:
166
两个表要做连接,就必须有个连接字段 A表 B表 在A表中的Aid和B表中的Bnameid就是两个连接字段 内连接:利用内连接可获取两表的公共部分的记录:Select * from A JOIN B ON A.Aid=B.Bnameid 运行结果如下: 其实select * from A,B wher
分类:
其他好文 时间:
2016-03-15 23:21:56
阅读次数:
217
2.location对象:它既是window的对像,也是document的对象,location包含8个属性,其中7个都是当前窗体的URL的一部分,剩下的最重要的是href属性,代表当前窗体的URL,location.href会重新定位到一个URL,而修改location.hash会跳到当前页面中的anchor(<aid=”name”>或者..
分类:
其他好文 时间:
2016-03-06 17:43:04
阅读次数:
205
转载于:http://www.itxuexiwang.com/plus/view.php?aid=148 线程是程序中可以并行执行的任务。 java运行系统总是选当前优先级最高的处于就绪状态的线程来执行。如果几个就绪线程有相同的优先级,将会用时间片方法轮流分配处理机。 进程与线程的区别 进程属于一个
分类:
编程语言 时间:
2016-02-25 15:16:17
阅读次数:
225