-- SQL Server 2000SELECT a.name AS 字段名, CASE WHEN EXISTS (SELECT 1 FROM sysobjects WHERE xtype = 'PK' AND parent_obj = a.id AND name IN (SELECT name F...
分类:
数据库 时间:
2014-07-16 23:16:46
阅读次数:
294
Cold weather is coming and in some northern states is already here. That means it’s time to winterize your car. Vehicle maintenance is something we do...
分类:
其他好文 时间:
2014-07-16 23:07:50
阅读次数:
177
--生成码表if exists (select * from dbo.sysobjects where id = object_id(N'[codetable]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [codetable] ...
分类:
数据库 时间:
2014-07-16 23:07:18
阅读次数:
11086
Cold weather is coming and in some northern states is already here. That means it’s time to winterize your car. Vehicle maintenance is something we do...
分类:
其他好文 时间:
2014-07-07 21:42:46
阅读次数:
247
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-07-07 17:30:29
阅读次数:
160
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-06-29 20:28:58
阅读次数:
183
We must have already been familiar with proprietary Fortran programming environments, for example,Compaq Visual Fortran IDE (which is actually a combi...
之前自定义了一个AlertDialog对话框,第一次点击时正常,但第二次调用时会出现错误:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
关于这个错误纠结了我...
分类:
移动开发 时间:
2014-06-28 07:28:39
阅读次数:
278
经常使用cd命令切换目录,虽有cd-,历史目录poppush等操作,终究不直观。直接上代码及部署:
i=1
HERE=`pwd`
VALID_HERE=${HERE//\//\\\/}
ALREADY_EXIST=`grep^${HERE}$$1`
declare-agodirs
whiletrue;do
[[$2="a"]]&&[[x${ALREADY_EXIST}="x"]]&&sed-i"/^EOF/..
分类:
系统相关 时间:
2014-06-28 06:50:25
阅读次数:
338
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 longes...
分类:
其他好文 时间:
2014-06-27 12:46:45
阅读次数:
238