#5-2 / trigger 응용문제 , signed,unsigned
[응용문제]회원가입시 바로 1000포인트가 지급되게 제작member table, point table + triggercreate table member( idx int(4) not null auto_increment, id varchar(30) not null, pw varchar(30) not null, name varchar(30) not null, tss enum('SKT','KT','LGT','알뜰폰') not null default 'SKT', phone char(11) not null, post char(6) not null, adr1 varchar(50) not null, adr2 varchar(50) not null, sex enum('male','female') not null defa..
2024. 6. 10.
#4-2 / view 응용 문제 , view select가 안됨 해결-권한문제
[ 응용문제 2 ]장바구니 웹페이지를 제작 해야합니다.해당 웹페이지에 다음과 같이 출력되도록 sql 문법을 작성하시오. table : basket 고객명 , 고객 id , 상품명 , 상품 code , 상품 수량 select b.mname, a.mid, c.prd_name , a.pcode, a.ea from basket as a join member as b join product as c where a.mid = b.mid and a.pcode = c.prd_code; a basketb memebrc product=> select a.mid,a.ea from basket as a join member as b join product as c .. view table 생성시 에러뜸.. 뭐가 문젤까.....
2024. 6. 5.
#3-5 / 기타(enum,set,timestamp)
* enum : column에 옵션을 입력시킨 후 해당 옵션 외에는 값이 저장되지 않도록 하는 자료형 , ex) radio의 name값=> radio일때 주로 사용create table event( no int(8) not null auto_increment, mid char(30) not null, mpass varchar(10) not null, mhp char(11) not null, memaill varchar(40) not null, mcode char(7) null, moption enum('win','office','xbox') not null default 'win', mdate timestamp not null default current_timestamp, primary key(no),..
2024. 6. 4.
#3-3 / excel 미러링, data backup 및 복구
⚡ excel 미러링 아래 파일로 member라는 table 추가- exel tab 1개당 table 1개 엑셀파일 보고 설계create table member( no int(6) not null auto_increment, mid char(20) not null, mname char(30) not null, mhp char(11) not null, memail varchar(100) not null, mtel varchar(13) not null, mpost char(5) not null, maddr varchar(200) not null, maddr2 varchar(100) not null, mlevel smallint(1) not null, //레벨이 1부터 시작하므로 int 가능 marea c..
2024. 6. 4.