create table users_ning(id primary key auto_increment,pwd int);
insert into users_ning values(id,1234);
insert into users_ning values(id,12345);
insert into users_ning values(id,12);
insert into...
分类:
数据库 时间:
2014-06-22 21:50:27
阅读次数:
268
昨天在存储过程中用了语句insert into a select from b。在应用中发现bigint字段插入到int字段的时候,数值被截断了,插入后已经不是所要的值。因为存储过程中没有用到异常捕捉的处理,所以一开始并未发现错误,只是在比对数据的时候才发现不对。后来比对了两张表,才发现是字段类型不一样。接下来就试着验证了一下(window下的测试环境)。
创建两张表
CREATE T...
分类:
数据库 时间:
2014-06-22 17:57:28
阅读次数:
356
跟想象的一样,iOS 8中的指纹识别使用起来还是很方便的,只需要一个接口就能搞定,屏幕上弹出一个模态的框,跟app store上的一样。
直接上代码吧,下面代码拷贝自Apple的官方文档。
需要添加LocalAuthentication.framework库,注意只有真机才有这个库,模拟器没有
#import "LocalAuthentication/LAContext.h"
LAC...
分类:
移动开发 时间:
2014-06-22 16:52:23
阅读次数:
220
了解存储过程之前,先了解一下mysql的控制结构。
类似C语言(if……else、while循环等)SQL也有自己的控制结构。
if……else控制结构:
例如:
(1)
if 判断表达式
then 执行语句;
end if;
与c语言进行比较
if(判断表达式)
执行语句;
(2)
if 判断表达式1
then 执行语句1;
else...
分类:
数据库 时间:
2014-06-22 16:39:46
阅读次数:
295
1.知识点
--第一个存储过程
/*
打印Hello World
create [or replace] PROCEDURE 过程名(参数列表)
AS
PLSQL子程序体;
调用存储过程:
1. exec sayHelloWorld();
2. begin
sayHelloWorld();
sayHelloWorld();
end;
/
...
分类:
数据库 时间:
2014-06-22 16:33:52
阅读次数:
354
类Browser.java是整个应用的Application.其代码如下:
public class Browser extends Application {
@Override
public void onCreate() {
super.onCreate();
// create CookieSyncManager...
分类:
移动开发 时间:
2014-06-22 15:01:11
阅读次数:
339
nginx作为web服务器,wordpress上传主题报错 413 Request Entity Too Large
解决:
vim /usr/local/nginx/conf/nginx.conf ’编辑nginx配置文件
client_max_body_size 20m; ‘在http段落里添加这一句后保存退出
/usr/local/nginx/sbin/nginx -s reload...
分类:
其他好文 时间:
2014-06-22 14:38:34
阅读次数:
203
Foundations of Machine Learning: The PAC Learning Framework(2)(一)假设集有限在一致性下的学习界。 在一篇文章中我们介绍了PAC-learnable的定义,以及证明了一个例子是PAC-learnable。 这一节我们介绍当hypothes...
分类:
其他好文 时间:
2014-06-22 12:46:38
阅读次数:
172
在Windows Server 2012 上安装 SQL Server 2012 时,提示启用 Windows 功能 NetFx3 时出错,错误代码:-2146498298。请尝试从 Windows 管理工具启用Windows 功能 NetFx,然后重新运行安装程序。有关如何启用 Windows 功...