외울대도 됏는데 맨날 헷갈려
* 테이블을 생성하면서 데이터도 같이 복사
Select * into [새로운 테이블명] From [기존 테이블명]
* 구조만 복사
Select * into [새로운 테이블명] From [기존 테이블명] Where 1=2
* 테이블에 있는 데이터만 복사
Inser into [복사될 테이블명] Select * From [기존 테이블명]
* 특정 데이터만 복사
Inser into [복사될 테이블명] Select * From [기존 테이블명] Where 조건
[출처] MSSQL 테이블 복사|작성자 은빛질주
반응형
'일' 카테고리의 다른 글
ERROR : Apple's web service operation was not successful (0) | 2012.09.04 |
---|---|
“Unknown class <MyClass> in Interface Builder file” error at runtime (0) | 2011.12.01 |
Any fool can write code that a computer can understand Good programmers write code that humans can understand. (0) | 2011.09.08 |
Error launching remote program (1) | 2011.06.28 |
The executable was signed with invalid entitlements. (0) | 2011.06.28 |