_대문 | 방명록 | 최근글 | 홈피소개 | 주인놈
FrontPage › 테이블전환
Describe 테이블전환 here

http://www.sqler.com/?mid=bSQLQA&page=88&document_srl=342114
create table taddy  (번호 int not null, name varchar(24))
 
insert taddy 
select 1,'박찬호' union all
select 2,'홍길동' union all
select 3,'김연아' union all
select 4,'유재석' union all
select 5,'강호동'
 
 
 
create table taddy_id
(번호 int identity(6,1) not null, name varchar(24))
 
 
 
alter table taddy switch to taddy_id
 
 
 
drop table taddy
exec sp_rename 'taddy_id','taddy'
 
select * from taddy


댓글 남기기..
이름: : 오른쪽의 새로고침을 클릭해 주세요. 새로고침
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

가슴 깊은 곳의 순수한 소망은 언제나 이루어진다. (간디 어록)