7/30 배움()
자바에서 데이터베이스를 제어하기 위해 배움 12345678910111213141516171819202122232425262728293031323334353637Drop table banana; purge recyclebin; Create TABLE banana( name varchar(20), age number, salary number, home varchar(10) ); INSERT INTO banana values('김현민',25,1000,'서울'); INSERT INTO banana values('윤은솔',24,1000,'김해'); INSERT INTO banana values('정우현',25,1000,'부산'); INSERT INTO banana values('홍길동',20,300,'대구');..
2018. 7. 30.
기초 SELECT문
INSERT INTOSELECT 테이블 SELECT age-1, salary*12 FROM banana;SELECT name,name, salary,salary*12,age,age*12 FROM banana;SELECT name as 이름,age as 나이, salary*12 as 연봉 FROM banana; Drop table banana;purge recyclebin; Create TABLE banana( name varchar(20), --필드 age number, salary number, home varchar(10));SELECT * FROM tab; INSERT into apple values('홍길동',23,300,'부산');INSERT into apple values('윤은솔',24,10..
2018. 7. 26.