다른 table에서 값 가져오기
방법1.
--1.
insert into test5
select BusinessEntityID, FirstName, LastName
from AdventureWorks2019.Person.Person
2.
--2.
select BusinessEntityID as id, FirstName as Fname, LastName as Lname
into test6
from AdventureWorks2019.Person.Person
'Database > MSSQL work' 카테고리의 다른 글
Merge (0) | 2020.11.09 |
---|---|
UPDATE, DELETE (0) | 2020.11.09 |
sequence , default (0) | 2020.11.09 |
TOP 수식 (0) | 2020.11.09 |
판매, 고객, 상품 테이블 연습 (0) | 2020.11.09 |