MS-SQL

· MS-SQL
mssql insert문 데이터 삽입 1편을 보고 와도 좋다. https://hgramdev.tistory.com/4 [MS-SQL] Insert문 데이터 삽입 데이터 삽입 방법은 다양하다. [MS-SQL] Create Table 테이블 생성 Create Table TB_Student( [idx] int not null identity(1,1), [name] nvarchar(10), [class] tinyint not null default(0) ) 간단한 이름과 반을 담아 둘 수 있는 테이블 hgramdev.tistory.com Create Table TB_Student( [idx] int not null identity(1,1), [name] nvarchar(10), [class] tinyint no..
· MS-SQL
데이터 삽입 방법은 다양하다. [MS-SQL] Create Table 테이블 생성 Create Table TB_Student( [idx] int not null identity(1,1), [name] nvarchar(10), [class] tinyint not null default(0) ) 간단한 이름과 반을 담아 둘 수 있는 테이블이다. 정말 간단히 Create Table = 테이블을 만들겠다. TB_Student라 hgramdev.tistory.com 테이블 생성 편에서 생성한 테이블에 데이터를 삽입해 보겠다. insert TB_Student(name, class) values ('HGR', 1) Insert [테이블명](컬럼명, 컬럼명) values (데이터, 데이터) 위와 같이 해당 테이블의 컬..
· MS-SQL
Create Table TB_Student( [idx] int not null identity(1,1), [name] nvarchar(10), [class] tinyint not null default(0) ) 간단한 이름과 반을 담아 둘 수 있는 테이블이다. 정말 간단히 Create Table = 테이블을 만들겠다. TB_Student라는 이름의 테이블을, 이테이블들의 컬럼은 괄호 안에있다. 라고 생각 하면된다. 첫번째 컬럼부터 설명하면 [idx] int not null identity(1,1) 테이블에 아이디 열을 생성하기 위해 idx라는 컬럼을 int로 선언하고 identity(1,1)을 넣어준다. identity(1,1)란 1씩 자동증가함을 의미한다. [name] nvarchar(10) [name..
HGRam
'MS-SQL' 태그의 글 목록