IF Exists Table or Procedure
테이블 존재 확인 후 있으면 제거하고 생성 IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='{테이블명}') drop table [dbo].[{테이블명}] go CREATE TABLE [dbo].[{테이블명}] ( … ) go 저장프로시저 존재 확인 후 있으면 제거하고 생성 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[{프로시저명}]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[{프로시저명}] GO create proc [dbo].[{프로시저명}] …
SQL/MS-SQL
2010. 2. 1. 11:23
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 한글
- macos
- JQuery
- centos
- Linux
- Debug
- Mac
- git
- IOS
- nodejs
- iphone
- Wordpress
- Android
- sencha touch
- iis
- Docker
- CSS
- 안드로이드
- 워드프레스
- Prototype
- JSON
- ASP
- mssql
- nginx
- javascript
- API
- PHP
- laravel
- classic asp
- IE
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함