1. ¼­¹ö¼³Ä¡(¼­¹ö±¸Ãà) 2. DataBase»ý¼º. DataBase : Data¸¦ ÀúÀåÇÒ ¼ö ÀÖ´Â ÀúÀå¼Ò. DataBase Management System: DataBase ¸¦ °ü¸®ÇÏ´Â ÇÁ·Î±×·¥. DataBase System : DataBase + DBMS + User(°ü¸®ÀÚ,°³¹ßÀÚ,»ç¿ë) * DataBase System À» DBMS¿Í °°Àº °³³äÀ¸·Î º¸±âµµ ÇÔ. * ±Ù·¡¿¡´Â DataBase¸¦ DataBase SystemÀ» °¡¸®Å°´Â ¸»·Î »ç¿ë. create database company; SQL(Structured Query Language) : R(Relational)DB¿¡¼­ »ç¿ëÇÏ´Â ¹ü¿ëÀû ¾ð¾î. 3. Table»ý¼º use company; create table products( id int not null auto_increment primary key, name varchar(50) not null, modelnumber varchar(15) not null, series varchar(30) not null ); 4. ÀÚ·áÀÔ·Â insert into products(name,modelnumber,series) values('eric','1234567','Aritist'); insert into products(name,modelnumber,series) values('Jeff','1234568','Artist'); insert into products(name,modelnumber,series) values('American','1234569','American Deluxe'); 5. ÀÚ·áÁ¶È¸ select * from products; select id, name from products; select * from products where series='Artist'; select * from products where id>1 and id<5; -- id°¡ 1º¸´ÙÅ©°í 5º¸´Ù ÀÛÀº Çà °Ë»ö. select * from products where id<2 or id>3; select * from products order by name asc; -- ¿À¸§Â÷¼ø select * from products order by name desc; -- ³»¸²Â÷¼ø -- 3¹ø°ºÎÅÍ 2°³ select * from products order by name desc limit 2,2; -- ù¹ø°ºÎÅÍ 2°³ select * from products order by name desc limit 2; --ƯÁ¤ ´Ü¾î°¡ Æ÷ÇÔµÈ ¹®ÀÚ¿­ °Ë»ö select * from products where name like '%tom%; -- ex: °Ô½ÃÆÇ Á¦¸ñ¿¡¼­ 'html5' °Ë»ö select * from board where title like '%html5%'; 6. µ¥ÀÌÅͼöÁ¤ update products set name='david' where id=1; update products set name='jeff', modelnumber='777777' where id=1; 7. µ¥ÀÌÅÍ»èÁ¦ delete from products where id=1;