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
- sencha touch
- ASP
- Docker
- CSS
- PHP
- Linux
- JSON
- IE
- 워드프레스
- Mac
- javascript
- Android
- classic asp
- Wordpress
- Prototype
- laravel
- JQuery
- iphone
- macos
- 한글
- IOS
- centos
- Debug
- git
- mssql
- iis
- API
- 안드로이드
- nodejs
- nginx
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함