select * from tableName CONVERT( FieldName USING gbk ) COLLATE gbk_chinese_ci desc ...
分类:
数据库 时间:
2016-07-23 13:28:11
阅读次数:
356
Linux的watch命令 — 实时监测命令的运行结果 watch 是一个非常实用的命令,基本所有的 Linux 发行版都带有这个小工具,如同名字一样,watch 可以帮你监测一个命令的运行结果,省得你一遍遍的手动运行。 直接在 watch 后面接你想运行的命令,watch 就会帮你重复运行,并把每 ...
分类:
系统相关 时间:
2016-07-23 13:28:36
阅读次数:
176
一开始我以为用C语言和C++不能实现使用者输入密码的时候显示出“*”呢!在制作网页的时候可以设置属性为“password”,就可以不显示使用者输入的内容了。。没想到偶然的机会试出了用while循环结构可以实现。以下是C语言和C++的代码,供初学者参考。 这是C语言实现的代码: 这是C++实现的代码: ...
分类:
编程语言 时间:
2016-07-23 13:29:19
阅读次数:
941
多线程没有控制的时候,线程的任务不一定被java虚拟机交替进行的 ...
分类:
编程语言 时间:
2016-07-23 13:26:18
阅读次数:
157
var submitForm = new FormData();submitForm.append("name",name);submitForm.append("pass",pass);//提交数组for (var i=0;i<likes.length;i++){ submitForm.appen ...
分类:
其他好文 时间:
2016-07-23 13:27:36
阅读次数:
112
什么是SQL注入攻击?引用百度百科的解释: sql注入_百度百科: 所谓SQL注入,就是通过把SQL命令插入到Web表单提交或输入域名或页面请求的查询字符串,最终达到欺骗服务器执行恶意的SQL命令。具体来说,它是利用现有应用程序,将(恶意)的SQL命令注入到后台数据库引擎执行的能力,它可以通过在We ...
分类:
数据库 时间:
2016-07-23 13:27:32
阅读次数:
459
There are n cards (n is even) in the deck. Each card has a positive integer written on it. n?/?2 people will play new card game. At the beginning of t ...
分类:
其他好文 时间:
2016-07-23 13:26:21
阅读次数:
145
方法一:用于windows try { Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+url); } catch (IOException e1) {e1.printStackTrace(); } 方法二:通用,但 ...
分类:
编程语言 时间:
2016-07-23 13:26:49
阅读次数:
169
控制台输出的语句拿到数据库查询就有数据,但是一直显示不出来 也不报错 后来 百度发现数据库连接不对 因为其中引用了两个数据库 所有写混了 下面是百度出来的一些解决方法 解决方案1: 是不是在代码中的一些特殊字符问题,比如:将查询条件中的“#”替换成“$”. 解决方案2: 打个断点看看执行到了哪里 解 ...
分类:
其他好文 时间:
2016-07-23 13:25:32
阅读次数:
123
想要将值插入到自动编号(或者说是标识列,IDENTITY)中去,需要设定 SET IDENTITY_INSERT示例:1.首先建立一个有标识列的表:CREATE TABLE products (id int IDENTITY PRIMARY KEY, product varchar(40))2.尝试 ...
分类:
数据库 时间:
2016-07-23 13:27:32
阅读次数:
261
鉴于原来越多的开源项目都采用Go为开发语言,本文介绍Linux(CentOS 6.8)下GO开发环境的搭建与使用。 一、Go安装使用 1、下载Go源码包 上传到/usr/local/src目录下 2、编译安装Go到/usr/local #注:必须使用root账户或者使用sudo来解压缩Go源码包 3 ...
分类:
编程语言 时间:
2016-07-23 13:27:11
阅读次数:
311
局部刷新//一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimatio ...
分类:
其他好文 时间:
2016-07-23 13:24:28
阅读次数:
224
1 #include"iostream" 2 #include"algorithm" 3 #include"cstdio" 4 #include"cmath" 5 #include"cstring" 6 #define MX 1400000 7 #define INF 0x3f3f3f3f 8 #d ...
分类:
其他好文 时间:
2016-07-23 13:26:37
阅读次数:
193
for (UIViewController *controller in self.navigationController.viewControllers) { if ([controller isKindOfClass:[PlaceOrderVC class]]) { [self.navigat ...
分类:
其他好文 时间:
2016-07-23 13:24:28
阅读次数:
101
1.子线程创建handler 方法一 HandlerThread handlerThread = new HandlerThread(" sub thread name"); //主要解决线程同步问题 handlerThread.start(); Handler subHandler = new H ...
分类:
其他好文 时间:
2016-07-23 13:24:57
阅读次数:
162
Vasya has the square chessboard of size n?×?n and m rooks. Initially the chessboard is empty. Vasya will consequently put the rooks on the board one a ...
分类:
其他好文 时间:
2016-07-23 13:24:14
阅读次数:
156
Integer装箱与拆箱 装箱: Integer i = 10; 相当于:Integer i = Integer.valueOf(10); 拆箱: Integer i = 10; //装箱 int t = i; //拆箱,实际上执行了 int t = i.intValue(); Integer i ...
分类:
其他好文 时间:
2016-07-23 13:25:42
阅读次数:
169