码迷,mamicode.com
首页 >  
搜索关键字:exists    ( 4689个结果
SQL简体繁体转换函数代码
--生成码表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
Word Search
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
[leetcode] Word Search
Given a 2D board and a word, find if the word exists in the grid.
分类:其他好文   时间:2014-07-07 13:15:02    阅读次数:165
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
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
not exists 事例
今天一个开发问到一个not exists问题,小小做个实验 实验1 SQL> select * from emp e1 where not exists (select 1 from emp e2 where e1.mgr = e2.empno);      EMPNO ENAME      JOB              MGR HIREDATE                 ...
分类:其他好文   时间:2014-07-01 06:59:39    阅读次数:164
php 商务网站购物车联动地址
数据表如下:CREATE TABLE IF NOT EXISTS `china` (`region_id` smallint(5) unsigned NOT NULL, `parent_id` smallint(5) unsigned NOT NULL DEFAULT '0', `region_na...
分类:Web程序   时间:2014-07-01 00:50:55    阅读次数:255
Longest Palindromic Substring
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-30 22:43:45    阅读次数:294
LeetCode: LRU Cache [146]
【题目】 Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. se...
分类:其他好文   时间:2014-06-29 22:45:26    阅读次数:358
leetcode--Longest Palindromic Substring
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!