file函数:file dirname name 返回文件所在目录file exists name 测试文件是否存在,存在返回1,否则返回0file extension name 返回文件扩展名file join path path 合并path形成一个新路径file mkdir name 创建目录...
分类:
其他好文 时间:
2014-11-26 23:51:26
阅读次数:
206
创建表:代码如下:create table if not exists t( id int, addTime datetime default '0000-00-00 00:00:00′)添加两条初始数据:insert t values(1, '2012-07-12 21:00:00′);inser...
分类:
数据库 时间:
2014-11-26 13:42:32
阅读次数:
215
/**
* 列出目录下的所有文件
*
* @param directory
* @return
*/
public List listFile(File directory) {
List list = new ArrayList();
if (!directory.exists())
return list;
if (directory.isDirect...
分类:
其他好文 时间:
2014-11-26 11:18:28
阅读次数:
143
积分第一中值定理. 若 $f$ 在 $[a,b]$ 上连续, 则 $$\bex \exists\ \xi\in (a,b),\st \int_a^b f(x)\rd x=f(\xi)(b-a). \eex$$
分类:
其他好文 时间:
2014-11-25 12:09:05
阅读次数:
90
【题目】
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or ...
分类:
其他好文 时间:
2014-11-24 20:56:08
阅读次数:
177
SQL 入门在准备成为MySQL DBA之前,能熟练的编写SQL是一个必要条件。exists 和 join之间的等价转换;基本的行列转换;SQL 循环等的熟练掌握对之后的运维和调优工作都有很大的帮助。推荐书籍:1. SQL Cookbook [原版下载] [中文版下载]一本循序渐进的SQL指导手册。...
分类:
数据库 时间:
2014-11-24 16:38:52
阅读次数:
259
select id, name from TAB_A t where not exists (select 1 from TAB_B t1 where t.id = t1.id and t.name = t1.name)
分类:
数据库 时间:
2014-11-24 11:25:51
阅读次数:
217
//创建文件,将byte数据直接进行保存
private RandomAccessFile file_test;
try {
File file = new File("/sdcard/data.yuv");
if (file.exists())
file.delete();
file_test = new RandomAccessFile(file, "rw");
} catch (...
分类:
编程语言 时间:
2014-11-23 17:39:02
阅读次数:
325
创建表简单的方式CREATE TABLE person (number INT(11),name VARCHAR(255),birthday DATE);或者是CREATE TABLE IF NOT EXISTS person (number INT(11),name VARCHAR(255),bi...
分类:
数据库 时间:
2014-11-23 13:05:35
阅读次数:
284
1. 常用的数据建视图,尽量减少group by,order by,update等查法;
2. 建立合理的索引;
3. 先做选择和投影,最后再连接操作(投影就是从所给的表中,选出需要的列;选择就是选出所需的行);
4. in换成exists,in是把外表和内表作hash连接,而exists是对外表作loop循环,每次loop循环再对内表进行查询,也就是子查询表大的用exists,子查询表小的...
分类:
数据库 时间:
2014-11-23 09:25:06
阅读次数:
197