태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.


Edit /etc/mysql/my.cnf

Locate the section that starts [mysqld]

And add these lines under it:
# utf8
init-connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci

top

Trackback Address :: http://www.ssial.com/trackback/343 관련글 쓰기

  1. online casinos 2011/07/07 07:02 댓글주소 | 수정/삭제 | 댓글

    감사합니다

  2. Chanel Outlet 2011/09/17 21:21 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  3. coach outlet online 2011/09/21 20:56 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  4. Burberry Bags 2011/10/13 17:25 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  5. Coach Outlet Online 2011/11/15 12:30 댓글주소 | 수정/삭제 | 댓글

    It's very good!Thank you for sharing it!I like buying handbags of the internet website:http://www.mycoachoutletstoreonline.com

  6. nike high heels 2011/12/06 11:30 댓글주소 | 수정/삭제 | 댓글

    http://www.jordannikeheels2011.com
    http://www.nikefreeshop2012.com
    http://www.nikeheelsjordan2011.com
    http://www.nikeheelweb2011.com
    http://www.nikeheeltw.com
    http://www.nikefreeshoes2012.com
    http://www.uggsales2011.com
    http://www.venteugg2011.com
    http://www.monclersoutlet2011.com
    http://www.monclerveste2011.com

  7. Coach Factory Outlet Online 2011/12/14 15:59 댓글주소 | 수정/삭제 | 댓글

    Great Coach Factory Outlet Online
    . A lot of useful information here. I’m sending it to some friends!

  8. red bottom shoes 2011/12/23 11:16 댓글주소 | 수정/삭제 | 댓글

    Christian louboutin pumps have a round toe, a button-fastening ankle christian louboutin pumps strap and a signature red sole. louboutin sale amber tone to bring the feeling of luxurious elegance,red sole shoes the classic expression of women’s fine with sexy charm. Upper cross lace style is full of surrealist avant-garde style at red bottoms Outlet. http://www.louboutinredbottomsshoes.com The color is more low-key fit the body color. Red bottom shoes sale black mood makes an imaginative,christian louboutin shoes glass-shaped heel painfully sweet love. Embrace the occasion of the retro arms embrace the future while the geometric style, to let people see the limitless design ingenuity. http://www.louboutinredbottomsshoes.com

  9. Coach Purses Outlet 2011/12/30 12:19 댓글주소 | 수정/삭제 | 댓글

    <a href="http://www.coachoutletpursess.com/"><h1>Coach Purses Outlet</h1></a>
    <a href="http://www.coachfactoryonlineu.com/"><h1>Coach Factory Online</h1></a>
    <a href="http://www.coachoutletl.com/"><h1>Coach Outlet</h1></a>
    <a href="http://www.canadacoachoutlet-s.net/"><h1>Coach Outlet Online</h1></a>
    <a href="http://www.coachoutletonline-2012.com/"><h1>Coach Outlet Online</h1></a>
    <a href="http://www.coachfactorystorei.com/"><h1>Coach Factory</h1></a>
    <a href="http://www.coachfactoryoutletz.com/"><h1>Coach Factory Outlet</h1></a>
    <a href="http://www.coachs-factory.net/"><h1>Coach Factory</h1></a>

  10. coach factory outlet 2012/01/13 16:02 댓글주소 | 수정/삭제 | 댓글

    http://www.coachsfactory2011.net coach factory outlet
    http://www.outletfactory-coach.net coach outlet online
    http://www.coachesoutletfactory.net coach outlet
    http://www.coachs2011.com coach outlet online
    http://www.outletfactory-coach.net coach factory outlet
    http://www.online-outlet-coach.net coach outlet online
    http://www.outletcoachesale.com coach outlet
    http://www.coachesoutletfactory.net coach factory outlet
    http://www.outletcoachesale.com coach outlet online

  11. abercrombie and fitch 2012/02/07 16:50 댓글주소 | 수정/삭제 | 댓글

    I have been reading your blog a lot over the past few days and it has earned a place in my bookmarks.

  12. abercrombie fitch 2012/02/07 16:51 댓글주소 | 수정/삭제 | 댓글

    I this blog is really great. I’m glad that i found a place to get such good information. Keep up the good work!.

  13. authentic jerseys 2012/02/10 15:09 댓글주소 | 수정/삭제 | 댓글

    http://www.steelerjerseyssuppliers.us/

  14. wow gold 2012/02/10 21:39 댓글주소 | 수정/삭제 | 댓글

    Our professional fellows <a href=http://www.mmopowerlevels.com/SWTOR-Power-leveling.html>SWTOR Power leveling</a> strive to make the price of <a href=http://www.mmopowerlevels.com/Rift-Prestige-Powerleveling.html>Buy Cheap Rift Prestige</a> lowest. SWTOR Power leveling else can you find such a dirt sale! our SWTOR Power leveling price are really cheap now, you can buy really Cheap SWTOR Power leveling here http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html We have mass available stock of swtor easy gold on most of the servers,We sell Cheap SWTOR Credits with 24/7 online support and Fast Delivery.

    http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html SWTOR Power leveling
    http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html Cheap SWTOR Power level
    http://www.cheap-powerleveling.com/SWTOR-Valor-Powerleveling.html SWTOR Valor Rank Powerleveling
    http://www.cheap-powerleveling.com/SWTOR-Valor-Powerleveling.html SWTOR Valor Powerleveling
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html SWTOR power leveling
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html power leveling swtor
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html SWTOR Power level
    http://www.mmopowerlevels.com/SWTOR-Valor-Powerleveling.html Valor Rank Powerleveling
    http://www.mmopowerlevels.com/SWTOR-Valor-Powerleveling.html Buy Cheap SWTOR Valor Rank
    http://www.mmopowerlevels.com/Rift-Prestige-Powerleveling.html Rift Prestige powerleveling
    http://www.mmopowerlevels.com/Rift-Favor-Points-Powerleveling.html Buy Cheap RIFT Favor Points
    http://www.mmopowerlevels.com/Dcuo-Marks-Powerleveling.html DCUO Marks powerleveling
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Diablo III gold
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Diablo 3 gold
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Cheap Diablo3 gold
    http://www.cheap-powerleveling.com/diablo3-power-leveling.html Diablo 3 powerleveling
    http://www.cheap-powerleveling.com/diablo3-power-leveling.html Diablo III powerleveling
    http://www.mmopowerlevels.com/Diablo3-Power-leveling.html Diablo 3 powerleveling
    http://www.mmopowerlevels.com/Buy-Diablo3-Gold.html Buy Cheap Diablo 3 Gold

  15. Deion Sanders Jersey 2012/02/13 12:34 댓글주소 | 수정/삭제 | 댓글

    http://www.49ersshoponline.com 49er Jersey
    http://www.49ersshoponline.com/patrick-willis-jersey Patrick Willis Jersey
    http://www.49ersshoponline.com/joe-montana-jersey Joe Montana Jersey
    http://www.49ersshoponline.com/alex-smith-jersey Alex Smith Jersey
    http://www.49ersshoponline.com/anthony-davis-jersey Anthony Davis Jersey
    http://www.49ersshoponline.com/brian-westbrook-jersey Brian Westbrook Jersey
    http://www.49ersshoponline.com/frank-gore-jersey Frank Gore Jersey
    http://www.49ersshoponline.com/isaac-sopoaga-jersey Isaac Sopoaga Jersey
    http://www.49ersshoponline.com/jerry-rice-jersey Jerry Rice Jersey
    http://www.49ersshoponline.com/michael-crabtree-jersey Michael Crabtree Jersey
    http://www.49ersshoponline.com/mike-iupati-jersey Mike Iupati Jersey
    http://www.49ersshoponline.com/nate-clements-jersey Nate Clements Jersey
    http://www.49ersshoponline.com/nate-davis-jersey Nate Davis Jersey
    http://www.49ersshoponline.com/roger-craig-jersey Roger Craig Jersey
    http://www.49ersshoponline.com/ronnie-lott-jersey Ronnie Lott Jersey
    http://www.49ersshoponline.com/steve-young-jersey Steve Young Jersey
    http://www.49ersshoponline.com/taylor-mays-jersey Taylor Mays Jersey
    http://www.49ersshoponline.com/vernon-davis-jersey Vernon Davis Jersey

Write a comment


http://tunelinux.pe.kr/joomla/component/option,com_wrapper/Itemid,90/
top

Trackback Address :: http://www.ssial.com/trackback/153 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:47 댓글주소 | 수정/삭제 | 댓글

    vTime is what you make of it.

  2. Chanel Outlet 2011/09/17 21:47 댓글주소 | 수정/삭제 | 댓글

    vTime is what you make of it.

  3. Burberry Bags 2011/10/13 17:11 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  4. Coach Outlet Online 2011/11/15 12:45 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

Write a comment


http://303-D01:1158/em
http://303-D01:5560/isqlplus

http://303-D01:5560/isqlplus/dba

이때에 303-D01은 컴퓨터이름이며 localhost또는 IP로 바꾸어 쓸 수 있다.
또한 오라클을 여러 버전 설치한 경우는 포트번호가 다를 수 도 있다.

top

Trackback Address :: http://www.ssial.com/trackback/119 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:27 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Chanel Outlet 2011/09/17 21:27 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  3. Coach Outlet Online 2011/11/15 12:39 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

Write a comment


Oracle
oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@[host]:[port=1521]:[instance]

MySQL
com.mysql.jdbc.Driver
jdbc:mysql://[host]:[port=3306]/[instance]

Microsoft SQL-Server
com.microsoft.jdbc.sqlserver.SQLServerDriver
jdbc:microsoft:sqlserver://[host]:[port=1433];DatabaseName=[DatabaseName];SelectMethod=Cursor

IBM AS400
com.ibm.as400.access.AS400JDBCDriver
jdbc:as400://[hostname]

DB2
COM.ibm.db2.jdbc.app.DB2Driver
jdbc:db2:[dbName]

Informix
com.informix.jdbc.IfxDriver
jdbc:informix-sqli://[hostname:port]/[dbName]:INFORMIXSERVER=[server];user=[user];password=[password]

Sybase
com.sybase.jdbc2.jdbc.SybDriver
jdbc:sybase:Tds:[host:port]/[db]

JDBC-ODBC Driver
sun.jdbc.odbc.JdbcOdbcDriver
jdbc:odbc:[DSN]

JSQL Driver
com.jnetdirect.jsql.JSQLDriver
jdbc:JSQLConnect://[serverName]:[port=1433]/[database=][/property=value]

top

Trackback Address :: http://www.ssial.com/trackback/113 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:23 댓글주소 | 수정/삭제 | 댓글

    vTime is what you make of it.

  2. Burberry Bags 2011/10/13 16:51 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:38 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

  4. Coach Factory Online 2011/12/11 23:05 댓글주소 | 수정/삭제 | 댓글

    댓글주소 | 수정/삭제 | 댓글

  5. Coach Factory Outlet Online 2011/12/14 15:58 댓글주소 | 수정/삭제 | 댓글

    Great Coach Factory Outlet Online
    . A lot of useful information here. I’m sending it to some friends!

Write a comment


MySQL 데이터 형식  범위  저장소 

bigint  -2^63(-9,223,372,036,854,775,808) ~ 2^63-1(9,223,372,036,854,775,807) 8바이트
 
int  -2^31(-2,147,483,648) ~ 2^31-1(2,147,483,647) 4바이트
 
smallint  -2^15(-32,768) ~ 2^15-1(32,767) 2바이트
 
tinyint  0 ~ 255 1바이트
top

Trackback Address :: http://www.ssial.com/trackback/87 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:45 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:26 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:48 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

Write a comment


[SQL] 기본키와 외래키 설정 예

1. 릴레이션의 애트리뷰트와 데이터타입

CREATE TABLE board_pos (
 num int(11) not null auto_increment,
 name varchar(15) NULL,
 email varchar(30) NULL ,
 PRIMARY KEY ( num )
);



2. board_pos 의 num 필드를 참조하는 board_repl의 board_num 필드에 외래키 설정하는 법
필드에 직접 기록하는 방법과 필드 설정 후 마지막 라인에 별도로 추가하는 방법 두가지가 있음.
---필드에 추가하는 방법 ----
create table board_repl(
num int not null primary key,
board_num int not null REFERENCES board_pos(num),
contonts varchar(100) not null,
reg_date datetime not null,
name varchar(20)not null
);

---필드와 별도로 추가하는 방법---
create table board_repl(
num int not null primary key,
board_num int not null,
contonts varchar(100) not null,
reg_date datetime not null,
name varchar(20)not null,
FOREIGN KEY(board_num) REFERENCES board_pos(num)
);



top

Trackback Address :: http://www.ssial.com/trackback/71 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:31 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:26 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:52 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

Write a comment


http://tong.nate.com/pakiki/37106517
top

Trackback Address :: http://www.ssial.com/trackback/70 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:47 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:38 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:52 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

Write a comment


 

Sequenc 생성
   자동적으로 순차적인 숫자를 생성하기 위해 Sequenc를 정의한다.
CREATE SEQUENC NAME
      [INCREMENT BY n]
      [START WITH n]
      [{MAXVQLUE n | NOMAXVALUE}]
      [{MINVALUE n | NOMINVALUE}]
      [{CYCLE | NOCYCLE}]
      [{CACHE n | NOCACHE}]

Sequenc 생성
여기서,

INCREMENT BY n은 Sequenc번호간의 간격인 정수 n이며, 생략되면 Sequenc는 1씩 증가
START WITH n은 생성되는 첫 번째 Sequenc번호로 생략되면 시퀀스는 1씩 증가
MAXVALUE n은 생성가능한 Sequenc의 최대값
NOMAXVALUE는 기본 옵션으로 최대값은 1027
MINVALUE n은 생성가능한 Sequenc의 최소값
NOMINVALUE최소값1
CACHE n|NOCACHE는 Oracle7 Sever가 미리 지정하고 메모리에 유지할 값의 수로 Default값을 20이다.

자세한 설명은, Oracle7 Server SQL Reference, Release 7.2, "CREATE SEQUENCE"를 보십시오.


Sequence 생성 : 예
♠ 질의 예제 : s_dept 테이블의 dept_id column 에 사용할 sequence인 s_dept_id를 만들라.
sequence는 51에서 시작 한다.
캐쉬와 cycle을 하지 않게 하라.

SQL> CREATE SEQUENCE s_dept_id
     2      INCREMENT BY      1
     3      START WITH      51
     4      MAXVALUE      9999999
     5      NOCACHE
     6      NOCYCLE;

Sequence created.

※Sequence가 Primary Key값을 생성한다면 CYCLE 옵션을 쓰지 말라.


Sequence 확인
  Sequence를 생성하면 data dictionary에 기록된다.
  Sequence가 데이터베이스 객체이므로 USER_OBJECTS dictionary에서 볼 수 있다.
  데이터 사전의 USER_SEQUENCES 테이블을 참조하면 설정된 사항을 확인할 수 있다.

♠ 질의 예제 : 자신이 소유한 모든 Sequence 정보를 출력하라.
 
SQL> SELECT sequence_name, min_value, max_value,
 2                     increment_by, last_number
     3     FROM    user_sequences;
LAST_NUMBER column은 사용가능한 다음 순서 번호를 출력합니다.


Sequence 이용
시퀀스를 만들면 테이블에서 사용할 순차적인 번호를 생성하기 위해 시퀀스를 이용할 수 있다.
NEXTVAL과 CURRVAL Pseudocolumn을 써서 Sequence 값을 참조하라.

           ♠ 질의 예제 : 지역2에 "Finance"라는 입력을 삽입하라.

     SQL>INSERT INTO s_dept(id, name, region_id)
          2   VALUES (s_dept_id, NEXTVAL, 'Finance', 2):
      1 row selected.


           ♠ 질의 예제 : S_DEPT_ID Sequence에 대한 현재 값을 보라.

     SQL>SELECT s_dept_id,CURRVAL
        2   FROM SYS,dual;


 

NEXTVAL과 CURRVAL Pseudocolumn
     ● NEXTVAL은 사용 가능한 다음 시퀀스값을 반환한다.
       - 매번 고유한 값을 반환한다.
     ● CURRVAL은 현재 시퀀스값을 구한다.
        -CURRVAL은 NEXTVAL사용 후에 사용되어야 한다.
     ● 사용규칙을 따르라.


 

NEXTVAL과 CURRVAL 의사 Pseudocolumn
NEXTVAL Pseudocolumn은 명시된 Sequence에서 다음 값을 추출하는데에 사용된다. Sequence명.NEXTVAL을 참조하면 새로운 번호가 생성되고 CURRVAL은 현재의 시퀀스 번호 값을 갖는다. CURRVAL이 참조되기 전에 현 사용자의 세션에서 NEXTVAL이 이용되어야 합니다. Sequence명,CURRVAL이 참조되면 사용자 프로세스에 사용된 최종 Sequence값이 출력된다.


NEXTVAL과 CURRVAL 사용규칙
다음에서 NEXTVAL과 CURRVAL을 사용할 수 있다.
    - Subquery가 아닌 SELECT 문의 SELECT List
    - INSERT 문의 Subquery SELECT List
    - INSERT 문의 VALUE 절
    - UPDATE 문의 SET 절
다음에서 NEXTVAL과 CURRVAL을 사용할 수 없다.
    - 뷰의 SELECT List
    - DISTINCT 키워드가 있는 SELECT 문
    - GROUP BY, HAVING, 또는 ORDER BY 절이 있는 SELECT 문
    - SELECT, DELETE, 또는 UPDATE 문의 Subquery
    - CREATE TABLE 또는 ALTER TABLE 명령의 DEFAULT 값
※자세한 설명은 Oracle7 Server SQL Reference, Release 7.2, "Pseudocolumn" 절과 "CREATE SEQUENCE"을 보라

Sequence 값의 캐슁
Sequence를 메모리에 캐쉬하면 Sequence 값을 더 빨리 액세스할 수 있다. 다음 Sequence값을 요구하면 캐쉬된 Sequence에서 return해 준다.

증가 없이 다음 시퀀스 값 보기
NOCACHE로 Sequence가 생성될 경우에만 USER_SEQUENCES 테이블을 query를 하여 다음 Sequence값을 볼 수 있다.

Sequence 변경
증가값, 최대 값, 최소 값, 순환옵션, 캐쉬 옵션을 변경한다.
Sequence에 대한 MAXVALUE 한계에 도달하면 Sequence에 대한 추가적인 값이 할당되지 않게 되고 Sequence가 MAXVALUE를 넘었음을 알리는 오류 메시지를 받게 됩니다. 이때Sequence를 계속 사용하려면 ALTER SEQUENCE 명령을 써서 수정할 수 있다.

Syntax
ALTER SEQUENCE NAME
    [INCREMENT BY n]
    [{MAXVALUE n │ NOMAXVALUE}]
    [{MINVALUE n │ NOMINVALUE}]
    [{CYCLE │ NOCYCLE}]
    [{CACHE n│ NOCACHE}]

Guidelines
자신의 Sequence이거나 Sequence에 대한 ALTER 권한을 가져야만 Sequence를 수정할 수 있다.
아직 생성되지 않은 시퀀스값만이 ALTER SEQUENCE명령에 영향받는다.
유효성 검사를 하게 된다. 예를 들어 새로운 MAXVALUE는 현재의 순서 번호보다 작지 않아야 한다.
START WITH 옵션은 ALTER SEQUENCE를 써서 변경할 수 없다. 다른 번호에서 다시 시작하려면 이전 시퀀스를 삭제하고 다시 생성해야 한다.

※자세한 설명은 Oracle7 Server SQL Reference, Release 7.2 "ALTER SEQUENCE"을 보라.


Sequence 삭제
DROP SEQUENCE명령을 사용하여 Sequence를 삭제한다.
Sequence가 삭제되면 더 이상 참조할 수 없다.
Sequence를 제거할 DROP ANY SEQUENCE 권한을 가지고 있거나 그 시퀀스의 소유자이어야 한다.
SQL>DROP SEQUENCE s_dept_id;
Sequence dropped.

Syntax
DROP SEQUENCE 시퀀스 이름;
※자세한 설명은 Oracle7 Server SQL Reference, Release 7.2 "DROP SEQUENCE"를 보라.

sequence 요약
Sequence 사용하여 테이블의 행에 대한 primary key 값을 자동으로 생성한다.
데이타베이스 객체인 Sequence를 다른 사용자들과 공유할 수도 있다.
USER_SEQUENCES 테이블에 있는 정보를 참조할 수 있다.
Sequence.NEXTVAL을 이용하여 다음 값을 Return 받는다.
Sequence.CURRVAL을 이용하여 NEXTVAL 에 의해 Return된 마지막 값을 확인할 수 있다.


top

Trackback Address :: http://www.ssial.com/trackback/68 관련글 쓰기

Write a comment


http://www.oracleclub.com/main.action

http://www.koug.net/

 
top

Trackback Address :: http://www.ssial.com/trackback/67 관련글 쓰기

Write a comment


create table board(
num number not null primary key,
subject varchar2(50) not null
);

create sequence board_seq minvalue 1 maxvalue  99999999999999999999999 increment by 1 start with 1 cache 20 noorder nocycle;

commit;

//트리거생성 및 수정 =>주의사항: eclipse와 isqlplus에서는 dual다음의 ;(새미콜론)으로 인해서 오류와 함께 트리거가 생성된다. 관리자(/em/console) 창으로 가서 ;(새미콜론)을 붙이고 컴파일을  다시하면 트리거가 정상 동작한다.
create or replace trigger bi_board
  before insert on board
  for each row
begin
  select board_seq.nextval into :new.num from dual;
end;

commit;

alter trigger bi_board enable;

select * from user_sequences;

select * from user_triggers;

select board_seq.nextval from dual;
select board_seq.currval from dual;


drop triger bi_board;
drop sequence board_seq;

참고 사이트 : http://www.acs.ilstu.edu/docs/Oracle/server.101/b10759/statements_7004.htm

top

Trackback Address :: http://www.ssial.com/trackback/66 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:35 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:03 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:38 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

  4. Coach Factory Outlet Online 2011/12/14 15:59 댓글주소 | 수정/삭제 | 댓글

    Great Coach Factory Outlet Online
    . A lot of useful information here. I’m sending it to some friends!

Write a comment