本文由 书画小说软件 整理发布 内容与本软件无关
更惬意的读、更舒心的写、更轻松的发布
--判断是否存在
if exists(select 1 from master..sysdatabases where name='TestDB')
print 'TestDB存在'
else
print 'TestDB不存在'
--判断表是否存在
if e...
分类:
数据库 时间:
2014-12-22 11:10:05
阅读次数:
128
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
通常作为一个应用程序的部署脚本,开始的第一项工作是为当前应用创建一个专用(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
1、先在数据库中创建一个存储过程DROP PROCEDURE IF EXISTS SQLoperation;create PROCEDURE SQLoperation()BEGIN insert into userinfo(userid,username,userpassword) values('...
分类:
数据库 时间:
2014-12-21 01:53:59
阅读次数:
260
-- 判断是否存在该列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
/// /// 判断目录是否存在不存在则创建 /// /// private static void ExitOrCreate(string Path) { if (!Directory.Exists(Path)) { ...
------------------------------------------------------------------------------------------------[创建存储过程,使用变量,随机数字]DELIMITER $$DROP PROCEDURE IF EXISTS...
分类:
数据库 时间:
2014-12-19 14:12:36
阅读次数:
235
创建数据库的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
题目描述: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