전체 글
-
[Oracle] 문자열함수, 수식처리, 날짜처리, 그룹함수DataBase/Oracle 2022. 9. 9. 15:33
-오라클의 함수는 함수의 이름만 사용해서 호출하면 실행되고 결과가 출력되는 건 아님 -select 구문을 형식을 빌려서 select와 from 사이에서 함수를 호출하고 from 뒤에는 함수실행의 임시테이블 역할을 하는 dual을 사용함 샘플 테이블인 dual 테이블 -dual: 테이블이 대상이 아닌 연산을 하려고 할 때 from 다음에 형식적으로 붙이는 실제로는 없는 테이블의 이름 select*from dual; 임시 데이터 출력 -실제테이블 원본을 대상으로 한 연산이 아닌 단순 데이터 연산에는 아래와 같이 사용함 select 1234*1234 as 연산결과 from dual; 문자열 관련 함수 -현재 사용되고 있고 사용될 모든 함수들은 괄호 안에 쓴 입력값이 필드명일 때 from 뒤에 테이블 이름을 사..
-
[Oracle] DMLDataBase/Oracle 2022. 9. 9. 15:27
-data management language -테이블에 레코드를 조작(추가, 수정, 삭제, 조회)하기 위한 명령어들 -insert(추가), update(수정), delete(삭제), select(조회 및 선택) 1. 샘플 테이블 생성 create table exam01( deptno number(2), --부서번호 dname varchar2(14), --부서명 LOC VARCHAR2(14) --위치 ); 2. 레코드 추가(Insert) -값은 문자('123')와 숫자(123)를 구분하여 입력함 -- 방법 첫번째 -- 필드명과 입력되어야 하는 값을 1:1로 매핑하여 입력함 -- 널값이 있어도 되는 필드는 필드명, -- 또는 기본값이 있는 필드명은 필드명과 값을 생략하고 입력가능함 insert into 테..
-
[Oracle] DDLDataBase/Oracle 2022. 9. 9. 15:17
DDL(database definition language): 데이터 정의어 제약조건(CONSTRAINT) 1. PRIMARY KEY(기본키) -테이블에 저장된 레코드를 고유하게 식별하기 위한 기본키, 하나의 테이블에 하나의 기본키만 정의할 수 있음 -테이블을 구성하는 필드들 중 자격이 되는 필드 중 하나에 부여하는 테이블의 대표값이라고 할 수 있음 -테이블을 구성하는 필드들 중에서 갖는 값들이 빈칸(null)이 없고 서로 다른 값(유일한 값. 즉 중복된 값을 갖을 수 없음)을 갖고 있어 레코드들을 유일하게 구분해낼 수 있는 필드를 기본키로 지정함 -기본키를 지정함으로써 기본키가 지정하지 않았을 때 발생할 수 있는 오류들을 미연에 방지할 수 있음 -기본키로 결함을 없애는 것. 그래서 결함없이 유지되는..
-
[Oracle] DB(database), SQL, 오라클자료형DataBase/Oracle 2022. 9. 9. 15:11
-DB 제품: 오라클, MySQL, MSSQL, MariaDB, MongoDB, Access 등 -DB의 조작 운영을 가능하게 하는 프로그램: DBMS(database management system) -각 DB 제품들에는 자신의 DB를 관리할 수 있는 DBMS가 존재함 -오라클DB에서 사용 가능한 DBMS: SQL developer, SQL plus, 이클립스 등 -DB 활용 분야: 일반 웹사이트 게시판의 게시물 저장용, 포털 검색 사이트 검색 대상 정보, 저장용, RPG 등 게임의 게임 정보 또는 캐릭터 정보, 회원들의 회원정보 등 관계형 데이터 베이스: 표 형식의 데이터 베이스 -Table: 데이터 베이스에서 사용되는 데이터 집합의 단위 -열: Field, 속성, Attribute -행: Rec..
-
[Oracle] 설치DataBase/Oracle 2022. 9. 9. 15:08
1. 사이트 접속해 파일 다운로드 하기 XE Prior Release Archive (oracle.com) 2. setup 하기 3. cmd 4. eclipse 열기 저장 위치 생성하기: File→ New→ Java Project→ OracleDatabas 생성(프로젝트 이름 설정)→ 생성된 Project 안 src 우클릭→ New→ Other→ SQL Development→ SQL File→ File name 설정(나는 01_First로 설정함) connected 하기 Window→ Show View→ Other...→ Data Management→ Data Source Explorer 하면 아래와 같이 View 창 뜸
-
[JQuery] imageVScode/JQuery 2022. 9. 9. 15:01
*사용된 이미지 1. 이미지 위에 마우스 올리면 이미지 변경 2. prompt로 이용해 숫자를 입력받아 이미지 변경 3. 이미지 슬라이드 4. 이미지 슬라이드 중 이미지 위에 마우스를 올리면 이미지 멈춤 5. view 안에 이미지를 나열한 후 left를 이용해 슬라이드 제작 6. 버튼에 번호를 부여해 이미지 이동하기 -리모트 버튼을 css를 이용해서 아래쪽 가운데 위치 해 각 버튼들 가로방향으로 나란히 위치 시킴 -버튼을 클릭하면 해당이미지의 위치로 animate를 이용해서 imgs를 이동시킴 1234 5678 7. 좌우버튼 생성해 이미지 이동하기 8. 재생 버튼 생성해 이미지 자동 이동하기 -해당되는 이미지 순서 우측 위쪽에 만들기 -버튼 클릭하면 해당되는 버튼 색상 변경하기 1234 5678 ▶
-
[JQuery] button, effectVScode/JQuery 2022. 9. 9. 14:54
show() -화면에 보여지게 하는 함수. -display:block을 쓰지 않고 show 함수를 써서 화면에 보이게 함. -각종 옵션으로 화면에 나타나는 변화에 또다른 효과를 줄 수도 있고 당연히 display:block의 내용 포함되어 실행됨 -show와 함께 다른 동작을 추가하고 싶다면 .show(function(){})처럼 show()안에 function(){}을 넣어서 실행시킴 -.show()에 익명함수를 넣으면 함수 동작 시간에 약간의 동작시간지연이 포함됨 show it hide it hi show it slow hide it slow hello toggle() 1) 태그 번호 지정하여 사용 show it / hide it hi show it slow / hide it slow hello 2)..