ctrl+`importurllib2,os;pf=‘Package
Control.sublime-package‘;ipp=sublime.installed_packages_path();os.makedirs(ipp)
ifnotos.path.exists(ipp)else
None;open(os.path.join(ipp,pf),‘wb‘).write(urllib2.urlopen(‘http://sublime.wbond.net/‘+pf.replace(‘
‘,‘%20‘)).rea..
分类:
其他好文 时间:
2014-10-09 16:40:58
阅读次数:
222
查询course表中,存在lectures_count字段的记录信息db.course.find( { "lectures.lectures_count": { $exists: true } } )删除course表中,所有的lectures.lectures_count字段db.course.u...
分类:
其他好文 时间:
2014-10-09 14:32:23
阅读次数:
280
概念:用当地数据库语言,写的一段业务逻辑算法,并将该算法存储在客户端 操作存储过程: CallableStatement接口==>专用于操作存储过程的接口。 SQL语句: 1)删除存储过程add_pro DROP PROCEDURE [IF EXISTS] add_pro; 2)将...
分类:
其他好文 时间:
2014-10-09 00:39:37
阅读次数:
256
对以下对象判断是否存在:database、table、proc、触发器、临时表、索引。1、判断数据库:if exists (select*fromsys.databaseswherename=’数据库名’)dropdatabase[数据库名] 2、判断表:Sql代码if exists (select...
分类:
数据库 时间:
2014-10-08 17:28:45
阅读次数:
228
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 "adjace...
分类:
其他好文 时间:
2014-10-08 00:05:04
阅读次数:
221
mysql中的in语句是把外表和内表作hash 连接,而exists语句是对外表作loop循环,每次loop循环再对内表进行查询。一直大家都认为exists比in语句的效率要高,这种说法其实是不准确的。这个是要区分环境的。
如果查询的两个表大小相当,那么用in和exists差别不大。
如果两个表中一个较小,一个是大表,则子查询表大的用exists,子查询表小的用in:
...
分类:
数据库 时间:
2014-10-07 14:38:03
阅读次数:
202
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-10-07 00:32:12
阅读次数:
237
关系型:使用一个关系,来表示实体信息和实体之间的联系关系:就是一个二维表,有行有列的表格创建数据库:create database 库名;容错级创建:create database if not exists 库名;创建带有系统保留字的数据库时,用库名包裹方法(用反引号将系统保留字包裹起来)指定字符...
分类:
数据库 时间:
2014-10-05 14:03:18
阅读次数:
219
一、操作数据库 1.创建数据库 CREATE DATABASE [IF NOT EXISTS] db_name[create_specification [, create_specification] ...] create_specification: [DEFAULT] ...
分类:
数据库 时间:
2014-10-04 12:18:46
阅读次数:
402
[leetcode]Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring....
分类:
其他好文 时间:
2014-10-02 13:30:42
阅读次数:
217