码迷,mamicode.com
首页 >  
搜索关键字:not exists    ( 4689个结果
判断数据库某字段是否存在
本文由 书画小说软件 整理发布 内容与本软件无关 更惬意的读、更舒心的写、更轻松的发布 --判断是否存在 if exists(select 1 from master..sysdatabases where name='TestDB')     print 'TestDB存在' else     print 'TestDB不存在'           --判断表是否存在 if e...
分类:数据库   时间:2014-12-22 11:10:05    阅读次数:128
TF42064: The build number already exists for build definition error in TFS2010
In TFS2008, deleting a build removes it from the database itself. If you delete a build called Build_20110423.1 or 1.0.0.1 from Build Explorer and tri...
分类:Web程序   时间:2014-12-21 20:33:52    阅读次数:371
Shell脚本:判断用户和用户组是否已经存在/创建用户和用户组
通常作为一个应用程序的部署脚本,开始的第一项工作是为当前应用创建一个专用(dedicated)的用户和用户组。这个脚本很简单,这里贴一个参考样本:#!/bin/sh user=test_user group=test_group #create group if not exists egrep "^$group" /etc/group >& /dev/null if [ $? -ne 0 ] ...
分类:系统相关   时间:2014-12-21 15:22:24    阅读次数:223
Jmeter&mysql存储过程实现曾删改查
1、先在数据库中创建一个存储过程DROP PROCEDURE IF EXISTS SQLoperation;create PROCEDURE SQLoperation()BEGIN insert into userinfo(userid,username,userpassword) values('...
分类:数据库   时间:2014-12-21 01:53:59    阅读次数:260
SQL 增加列
-- 判断是否存在该列if exists(SELECT * FROM syscolumns WHERE id=object_id('@Table') and name='@COLUMN') ALTER table @Table DROP COLUMN @COLUMN GO--添加列ALTER...
分类:数据库   时间:2014-12-19 22:01:06    阅读次数:216
C# 判断当前目录是否存在不存在则创建
/// /// 判断目录是否存在不存在则创建 /// /// private static void ExitOrCreate(string Path) { if (!Directory.Exists(Path)) { ...
分类:Windows程序   时间:2014-12-19 18:39:06    阅读次数:228
mysql 使用存储过程,事件等的一些小笔记 [Mark]
------------------------------------------------------------------------------------------------[创建存储过程,使用变量,随机数字]DELIMITER $$DROP PROCEDURE IF EXISTS...
分类:数据库   时间:2014-12-19 14:12:36    阅读次数:235
SQL语句创建表和数据库
创建数据库的SQL语句: 1 use practice 2 go 3 if exists (select * from sysobjects where name='practice') 4 drop table Store_Information 5 create table Store_Inf....
分类:数据库   时间:2014-12-18 10:16:53    阅读次数:241
Longest Palindromic Substring(最长回文子串)
题目描述: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 l...
分类:其他好文   时间:2014-12-17 16:10:40    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!