본문 바로가기

반응형

DB/ORACLE

[펌] 네임스페이스에서 이름생성 방법(Within a namespace, no two objects can have the same name) Within a namespace, no two objects can have the same name. # The following schema objects share one namespace: - Tables - Views - Sequences - Private synonyms - Stand-alone procedures - Stand-alone stored functions - Packages - Materialized views - User-defined types # Each of the following schema objects has its own namespace: - Indexes - Constraints - Clusters - Database triggers - Private dat.. 더보기
[펌] 오라클 쿼리 작성 지침 SQL statement 작성 지침 가. SQL statement의 기본적인 형태 ¨ SQL statement 내의 Comment는 /* 와 */ 를 사용한다. ¨ 한 라인에는 최대 하나의 컬럼명만 지정한다. x 예. SELECT 주민번호, 신청일자시간 (X) SELECT 주민번호, 신청일자시간 (O) ¨ SELECT 혹은 INSERT 시 컬럼명을 반드시 일일이 명료하게 지정하여, 컬럼 추가 혹은 삭제 등과 같은 데이터모델 변경에 대처하도록 한다. ... 생략 ... -> 전체 내용은 첨부파일을 확인하세요. 출처 : http://blog.naver.com/swinter8/130000205228 더보기
[펌] print_table 프로시져 만들기 ^^ 출처 : http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1035431863958 For print_table, thats easy. Here is the Oracle8i specific one. It uses authid_current user so you can install it ONCE per database and many people can use it (with roles and all intact): SCOTT> create or replace procedure print_table( p_query in varchar2 ) AUTHID CURRENT_USER is l_theCursor integer default dbm.. 더보기

반응형