꽃선생 2015. 4. 8. 10:34

명령 뒤에 db명을 적어주면 끝

하지만 아무작업을 안하면 db가 생성이 안된다는 것

sqlite3 test.db

 

아무 테이블이나 만들어주기.

create table account(

id integer primary key,

pw integer not null

);

 

초기 데이터를 넣고 확인

insert into account(id, pw)

values('1234', '5678');

 

select * from account;

 

결과를 보기 힘들면

.header on

.mode column

 

그리고 다시

select * from account;