mysql 优化mysql> SHOW VARIABLES LIKE '%innodb_flush_log_at_trx_commit%';+--------------------------------+-------+| Variable_name | Val...
分类:
数据库 时间:
2014-06-28 10:40:55
阅读次数:
292
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2014-06-26 00:07:07
阅读次数:
311
原文:08. 删除重复&海量数据重复数据,通常有两种:一是完全重复的记录,也就是所有字段的值都一样;二是部分字段值重复的记录。一. 删除完全重复的记录完全重复的数据,通常是由于没有设置主键/唯一键约束导致的。测试数据:if OBJECT_ID('duplicate_all') is not null...
分类:
其他好文 时间:
2014-06-25 23:46:12
阅读次数:
289
原创地址:http://www.cnblogs.com/Alandre/(泥沙砖瓦浆木匠),需要转载的,保留下! 文章宗旨:Talk is cheap show me the code.
大成若缺,其用不弊.大盈若冲,其用不穷.
最完满的东西,好似有残缺一样,但它的作用永远不会衰竭;最充盈的东西,好似是空虚一样,但是它的作用是不会穷尽的
Written In The Font
摘...
分类:
编程语言 时间:
2014-06-22 22:49:41
阅读次数:
256
select a.FILE_NAME,a.AUTOEXTENSIBLE,a.MAXBYTES,a.INCREMENT_BY from dba_data_files a;
--AUTOEXTENSIBLE 是否自动扩展
--MAXBYTES 最大
--INCREMENT_BY 自动扩展块数
SQL> show parameter db_block
NAME TYPE VALUE
----------------...
分类:
数据库 时间:
2014-06-22 22:43:22
阅读次数:
411
昨天在存储过程中用了语句insert into a select from b。在应用中发现bigint字段插入到int字段的时候,数值被截断了,插入后已经不是所要的值。因为存储过程中没有用到异常捕捉的处理,所以一开始并未发现错误,只是在比对数据的时候才发现不对。后来比对了两张表,才发现是字段类型不一样。接下来就试着验证了一下(window下的测试环境)。
创建两张表
CREATE T...
分类:
数据库 时间:
2014-06-22 17:57:28
阅读次数:
356
题目:Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your...
分类:
其他好文 时间:
2014-06-22 13:49:21
阅读次数:
243
Oracle 11g之前,当数据库出现问题时,往往第一时间需要看alert日志,看看里面记录了哪些错误,可以给我们提示。alert文件名则
是alert_.log,文件存储路径由参数background_dump_dest决定,例如:
SQL> show parameter background_dump_dest
NAME...
分类:
数据库 时间:
2014-06-22 11:43:46
阅读次数:
296
Toast can show the help/prompts to user. There have five effect of toast as bellow:
1.default effect:
code:
Toast.makeText(getApplicationContext(), "默认Toast样式",
Toast.LENGTH_SHORT).sho...
分类:
移动开发 时间:
2014-06-22 11:35:38
阅读次数:
500
As we all know,a thread is a separate process on your computer.you can run multiple threads all at the same time.
multi-threaded code has the disadvantage of becoming quite complex very quickly,altho...
分类:
其他好文 时间:
2014-06-22 07:25:06
阅读次数:
244