码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
lr_start_transaction/lr_end_transaction事物组合
lr_start_transaction/lr_end_transaction事物组合总结一下:lr_start_transaction与lr_end_transaction 为使用最多的事物创造组合函数,lr_start_transaction为事物开始函数,lr_end_transaction为...
分类:其他好文   时间:2015-05-06 10:51:39    阅读次数:121
block注意事项
1.block的声明和注意事项#import "ZYViewController.h"@interface ZYViewController ()@end/*用typedef可以声明一种类型的block*///block前加上typedef, 那么就不是一个block指针(变量),而是一种block...
分类:其他好文   时间:2015-05-06 01:14:19    阅读次数:176
leetcode 19 Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the end, the linked li...
分类:其他好文   时间:2015-05-05 23:57:00    阅读次数:301
iOS 在UILabel显示不同的字体和颜色
现实代码:.h文件@interfaceViewController : UIViewController@property(nonatomic, strong)IBOutletUILabel *attrLabel;- (IBAction)next:(id)sender;@end.m文件 在viewD...
分类:移动开发   时间:2015-05-05 19:08:53    阅读次数:198
zabbix 统计mysql session表 统计用户上网行为
/usr/local/zabbix/bin/mysql_session.sh#!/bin/bash#thisscriptisusedtosortmysqlmaliciousaction#mysqlsessionmetric=$1case$metricinmini)output=$(mysql-uroot-pxxxxxx-e"select*fromhuiyewang.snto_session;"|awk-F"|"‘{print$1}‘|awk‘{print$9}‘|awk‘{++S[$NF]}END{for(a..
分类:数据库   时间:2015-05-05 16:44:57    阅读次数:183
case when then else end mysql
select(@rownum:=@rownum+1)ASserial_Num,tb_ser.nameasserver_Name,count(tb_uer.id)asregist_Num,count(casewhentb_uer.status=0thentb_uer.idelsenullend)asn...
分类:数据库   时间:2015-05-05 16:22:02    阅读次数:133
另一种将有分隔符的数据导入到临时表中的方案
IF(OBJECT_ID('tempdb..#TMP')) IS NOT NULL BEGIN TRUNCATE TABLE #TMP DROP TABLE #TMP END CREATE TABLE #TMP ( str11 VARCHAR(200) ) DECLARE @Area VARCHAR(500) SET @Area = '0-60,60-90,90-120,120-160,...
分类:其他好文   时间:2015-05-05 14:27:33    阅读次数:121
链式前向星
数据结构:Type EdegNode=recordT,w,next:longint; End;VarE:array[1..m]of longint;Head:array[1..n]of longint;读入边:For i:=1 to n do head[i]:=-1;For i:=1 to m do...
分类:其他好文   时间:2015-05-05 14:17:23    阅读次数:127
拓扑排序
使用链式前向星储存边,代码如下://先将图中没有前驱(即入度为0)的顶点加入队列For i:=1 to n do if d[i]=0 thenBegin Inc(tot); q[tot]:=i;End;//使用队列中的点更新d数组并生成拓扑序列Iq:=0;While iq-1 doBegin Dec...
分类:编程语言   时间:2015-05-05 14:14:40    阅读次数:148
awk循环
循环的功能是:当测试表达式的条件为真时,重复执行表达式后面的语句。循环常常被用来对记录中的每个字段重复执行某种操作,或者在END块中用来循环处理某个数组中的所有元素。awk有3种类型的循环:while 循环、for循环和特殊for循环。 1. while循环 使用while循环的第一步是给一个变量设初值,然后在while表达式中测试该变量。如果求得表达式的值为真(非0),则进入循环体执...
分类:其他好文   时间:2015-05-05 08:58:10    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!