码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
Leetcode Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:其他好文   时间:2014-07-02 22:10:42    阅读次数:262
oracle 常用的系统表查询
(转自:http://blog.csdn.net/marshalchen/article/details/6552103)select * from user_tab_cols where column_name=upper('xxxxx');查询哪些表中有某一列select status from...
分类:数据库   时间:2014-07-02 20:56:58    阅读次数:457
poj1089:Intervals
1089:Intervals总时间限制: 1000ms 内存限制: 65536kB描述There is given the series of n closed intervals [ai; b i], where i=1,2,...,n. The sum of those intervals ma...
分类:其他好文   时间:2014-07-02 20:39:31    阅读次数:236
SQL Server参数化查询中应用Like
一般情况下是SQL语句:Select * From Users Where UserName Like 'Lin%'Select * From Users Where UserName Like 'Lin%'采用参数化SQLDECLARE @pattern VARCHAR(MAX)SET @patt...
分类:数据库   时间:2014-07-02 20:34:52    阅读次数:287
清除oracl中有主外键关联的表中的部分数据。
1.禁用主外键BEGINfor c in (select 'ALTER TABLE '||TABLE_NAME||' DISABLE CONSTRAINT '||constraint_name||' ' as v_sql from user_constraints where CONSTRAINT_...
分类:其他好文   时间:2014-07-02 17:27:07    阅读次数:193
[leetcode] Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.
分类:其他好文   时间:2014-07-02 14:47:43    阅读次数:253
sql server 判断是否存在数据库,表,列,视图
原文:sql server 判断是否存在数据库,表,列,视图1 判断数据库是否存在if exists (select * from sys.databases where name = '数据库名')drop database [数据库名]2 判断表是否存在if exists (select * f...
分类:数据库   时间:2014-07-02 14:43:14    阅读次数:247
Requirement-Driven Linux Shell Programming
Requirement-Driven Linux Shell ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where can I find the basic Material about Linu...
分类:系统相关   时间:2014-07-02 13:55:48    阅读次数:410
SQL Server 触发器
--向表“j0261”插入数据时,检查学号是否存在于表“j026”中,如存在则进行插入操作,否则就不插入。 create trigger checkid on j0261 instead of insert as if(not exists(slect * from j026 where 学号=(select 学号 from inserted)))--如果插入j0261的那一条数据里的'学号'不存...
分类:数据库   时间:2014-07-02 09:39:12    阅读次数:268
Swift扩展(Extension)
在现有类和结构体的类型基础上,扩展新的功能。 语法:extension SomeType{// new functionality to add to SomeType goes here}An extension can extend an existing type to make itadopt one or more protocols.Where this is the case,the...
分类:其他好文   时间:2014-07-02 07:36:22    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!