일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- Google Map
- rowspan
- ibsheet
- jsr 296
- phonegap
- 선택적조인
- appspresso
- Spring
- sencha touch
- GPS
- Eclipse
- PHP
- iBATIS
- jQuery
- swingx
- MySQL
- JSON
- 전자정부프레임워크
- node.js
- Ajax
- Android
- oracle
- WebLogic
- MFC
- tomcat
- PLSQL
- 가우스
- JDOM
- dock
- Struts
- Today
- Total
목록Developement (559)
Where The Streets Have No Name
오라클팁에 "계층 구조의 조회(Hierarchical Queries)" 강좌에서 CONNECT BY 와 START WITH를 상관관계 쿼리에 대해서 소개를 했었습니다. Oracle10g 부터 CONNECT BY 절에서 제공하는 CONNECT_BY_ROOT, SYS_CONNECT_BY_PATH, CONNECT_BY_ISLEAF 기능에 대해서 알아보겠습니다. SQLPLUS scott/tiger SQL>SET LINESIZE 100 SQL>SET PAGESIZE 100 SQL>COL ename FORMAT A20 ◈ 상관관계 쿼리 예제 SQL>SELECT LPAD(' ', 4*(LEVEL-1)) || ename ename, empno FROM emp START WITH job='PRESIDENT' CONNEC..
사용법은 SYS_CONNECT_BY_PATH(컬럼명, 구분자) SELECT LPAD('' '', 2*LEVEL-1)||SYS_CONNECT_BY_PATH(ename, ''/'') "Path" FROM scott.emp START WITH ename = ''KING'' CONNECT BY PRIOR empno = mgr; Path ------------------------------------------------------------ /KING /KING/JONES /KING/JONES/SCOTT /KING/JONES/SCOTT/ADAMS /KING/JONES/FORD /KING/JONES/FORD/SMITH /KING/BLAKE /KING/BLAKE/ALLEN /KING/BLAKE/WARD /KING..
WITH Clause 의 활용 with clause 는 Oracle 9i 에서 추가된 기능으로 동일한 SQL 구문을 매크로와 유사한 개념으로 사용함으로써 SQL 을 간단하게 작성하 하며 performance 향상에도 도움을 주도록 고안되어 있습니다. 동일한 SQL 부분은 임시 테이블을 생성할 것인지 아니면 인라인뷰와 조인등으로 처리할 것인지 옵티마이저가 판단하여 실행계획이 수립되게 됩니다. Scalar Subquery 는 함수처럼 사용할 수 있으나 제약조건중 하나가 인라인 뷰가 중첩되어 있을때 메인쿼리의 조건이 스칼라 서브쿼리 안쪽의 인라인뷰 쪽으로 파고드는 View Merging 이 일어나지 않는 다는 점입니다. SELECT DEPTNO, (SELECT COUNT(*) -- 1 레벨 FROM (SELE..
■ CREATE DATABASE database_name (데이타베이스이름) 데이타 베이스 이름은 문자와 숫자, '_' 를 포함하는 32 byte 이내로 작성한다. 이 명령은 새로운 데이타베이스 공간을 생성시킨다. ■ DROP DATABASE database_name 존재하는 데이타베이스를 제거한다. 데이타베이스 상에 존재하는 테이블도 모두 삭제 되므로 매우 조심하여 작업하여야 한다. 한번 삭제되면 복구는 불가능 하므로 데이타 베이스 상의 테이블과 데이타가 모두 백업이 되었는지 확인하고 작업한다. ■ CREATE TABLE table_name ( create_definition,... ) 데이타베이스 상에 테이블을 생성시키는 명령이다. 자세한 옵션은 다음과 같다. create_definition: col..
http://www.mungchung.com/mianamssi/zboard/view.php?id=lecture&no=13
이 글은 Oracle 9i AS 9.0.x이나 Oracle AS 10g 9.0.4.x 내의 OC4J, 또는 OC4J standalone 고객들이 JDBC application을 작성하면서 database connection pool이 필요하거나 다른 connection pool에서 migration할 때 편리하게 활용하시기 위하여 작성되었습니다.1. configuration file OC4J의 경우 database connection pool 설정은 config directory 내 data-sources.xml file에서 이루어집니다. $ORACLE_HOME/j2ee//config/data-sources.xml 예를 들어 OAS 10g에서 OC4J component 중 'home' component에..
import javax.transaction.*; import javax.naming.*; InitialContext ctx = new InitialContext(); UserTransaction tx1 = (UserTransaction)ctx.lookup("java:comp/UserTransaction"); tx1.begin(); try{ tx1.commit(); } catch ( Exception e ) { tx1.rollback(); }
http://www.oracle.com/technology/global/kr/pub/articles/oracle_php_cookbook/index.html
SQL질의를 사용하는 아래의 예는 오라클 9iR2이상에서만 가능합니다. 즉, 오라클 9i부터 컬럼명 변경을 위한 SQL문법이 제공됩니다. SQL> ALTER TABLE table_name RENAME COLUMN old_column_name TO new_column_name; SQL> alter table test rename column pass to passwd; 테이블이 변경되었습니다.
select months_between(sysdate,to_date('2002-12-22','yyyy-mm- dd')) -- months_between(A,B) = A-B/30 --select add_months(sysdate,4) -- 특정일의 달수 더한 날 --select next_day(sysdate,'friday') -- 특정일의 다음주 요일 --select last_day(sysdate) -- 특정일의 해당 월의 마지막 날 --select round(sysdate,'dd') -- 특정일의 반올림(오후면 다음날..) --select trunc(sysdate,'ww') -- 특정일의 주 첫일 찾기 from dual # 날짜계산 /* 어제 */ 날짜칼럼 BETWEEN TRUNC(SYSDATE-1) A..
ROLLUP operator는 SELECT문의 GROUP BY절에 사용된다. SELECT절에 ROLLUP 을 사용함으로써 'regular rows'(보통의 select된 data)와 'super-aggregate rows'(총계)을 구할 수 있다. 기존에는 select ... union select 를 이용해 구사해야 했었던 것이다. 'super-aggregate rows'는 'sub-total' (중간 Total, 즉 소계)을 포함한다. CUBE operator는 Cross-tab에 대한 Summary를 추출하는데 사용된다. 모든 가능한 dimension에 대한 total을 나타낸다. 즉 ROLLUP에 의해 나타내어지는 item total값과 column total값을 나타낸다. NULL값은 모든 값에..
1. jar파일이란 : jar파일은 archive파일이다. 즉 여러개의 파일을 하나의 파일로 묶는 jar명령을 사용하여 생성된다. 이 파일은 winzip에서 열어 볼 수 있으며, winzip에서 열어보면 여러개의 파일들이 디렉토리 정보를 가진채 들어 있다. (아무 jar파일을 직접 클릭해 열어 보시라) 2. zip 파일과 다른 점 : winzip과 다른점은 압축되어 있을수도 있고, 그냥...하나로 묶어놓은 파일일수 도 있다. 그래서 jar 파일을 archive파일이라 볼수 있다. 이렇게 archive파일로 묶는 이유는 자바로 개발한 여러클래스 파일들 또는 패키지 파일이 있을때, 이를 하나로 묶어두면, 그 클래스들을 참조하기도 편하고, 다운 받기도 쉽다. (애플릿의 경우 더욱 그러함) 3. jar명령 사용..
테이블객체 모음(dhtml) http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/ifaces/table/table.asp테이블 객체의 속성들 자세한 내용은 상위 페이지를 참조하여 사용할 수 잇습니다. ==================== align background bgColor border borderColor borderColorDark borderColorLight caption cellPadding cellSpacing cols createCaption createTFoot createTHead dataPageSize deleteCaption deleteRow //행삭제 deleteTFoot de..
http://www.eclipse.org/org/june05release/screencasts/5-webToolsInstallation/webToolsInstallation.html
SP2 출시로 인해 윈도우 사용자들은 보안과 설정에 대한 선택권이 보다 넒어졌다. 그러나 기본적인 보안 기능을 강화됨에 따라 웹사이트 개발자들에게는 그 동안 별 문제 없이 사용되던 웹사이트의 기능들이 제한될 수 있다는 점을 유념해야 한다. 윈도우 XP 서비스팩2는 8월 11일 RTM 버전이 출시 되었고, 9월 2일 윈도우 업데이트를 통해 모든 윈도우 XP 사용자에게 배포 되게 된다. 또한, 10월 1일부터는 모든 윈도우 XP를 탑재하는 PC에 기본 탑재돼 출시 된다. 우리 나라가 윈도우 XP 사용자가 해외에 비해 상대적으로 많고, 주요 제한 기능들이 팝업과 액티브X 컨트롤 등 우리 나라에서 큰 거부감 없이 사용되던 기술이어서 갑작스런 변경에 혼란이 야기될 가능성이 있다. 이 글에서는 XP 서비스팩2로 인..
Ant로EJB개발을 효율화(XDoclet을 이용)
*.java *.js 파일에서 한글이 깨지는 문제가 발생하였다. 해결법 Preferences -> General -> Content types 에서 해당항목을 euc-kr 혹은 ms949로 변경해준다.
create table copy_t ( no number(3) not null, vno varchar(3) not null ) pctfree 0 pctused 40 initrans 1 maxtrans 255 storage ( initial 40 k next 40 k pctincrease 0 minextents 1 maxextents 121 ) tablespace users ; create unique index copy_t_i00 on copy_t ( no asc ) pctfree 0 storage ( initial 40 k next 40 k pctincrease 0 minextents 1 maxextents 121 ) tablespace indx ; alter table copy_t add ( cons..
/******************************************************************** 작성자 : 김대훈 작성일 : 20040206 테이블 : copy_ymd 용 도 : 일자 복제용 ********************************************************************/ create table copy_ymd ( ymd varchar2(8) not null, ymd_dm date not null ) tablespace users ; insert into copy_ymd (ymd, ymd_dm) select to_char(to_date('19591231','yyyymmdd') + rownum, 'yyyymmdd'), to_date('..