Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Oracleѧϰ±Ê¼Çժ¼1

 1.create alter insert update selectµÈ
ÈçºÎ½¨±í
   ѧÉú±ístudent
        create table student( --ѧÉú±í
           xh number(4), --ѧºÅ
           xm varchar2(10), --ÐÕÃû
           sex char(2), --ÐÔ±ð
           birthday date, --ÈÕÆÚ
           sal number(7,2) --½±Ñ§½ð
        );
   °à¼¶class
       create table class( --°à¼¶±í
          classid number(2), --°à¼¶±àºÅ
          cname varchar2(20) --°à¼¶Ãû×Ö
       );
  Ìí¼Ó×Ö¶Î(ѧÉúËùÔڰ༶classid)
      alter table student add (classid number(2));
  ÐÞ¸Ä×ֶεij¤¶È
      alter table student modify (xm varchar2(12)) ;
  ÐÞ¸Ä×ֶεÄÀàÐÍ(²»ÄÜÓмǼµÄ)
      alter table student modify (xh varchar2(5));
  ɾ³ýÒ»¸ö×Ö¶Î
      alter table student drop column sal;
  ɾ³ý±í
      drop table student;
  ±íµÄÃû×ÖÐÞ¸Ä
      rename student to stu;
  ×Ö¶ÎÈçºÎ¸ÄÃû×Ö
      --ÏÈɾ³ý
      a)alter table student drop column sal;        
      --ÔÙÌí¼Ó
      b)alter table student add (salary number(7,2));
ÈçºÎ²åÈëÊý¾Ý
  ²åÈëÊý¾Ý insertÓï¾ä
      ËùÓÐ×ֶζ¼²åÈë
       insert into student values ('A001','ÕÅÈý','ÄÐ','01-5ÔÂ-05',10);
 &n


Ïà¹ØÎĵµ£º

Javaµ÷ÓÃOracleÊý¾Ý¿âµÄ·ÖÒ³´æ´¢¹ý³Ì

 ×î½üÏîÄ¿½ø¶È±È½Ï»ºÂý£¬³õ²½Ñо¿ÁËÒ»ÏÂOracleµÄ´æ´¢¹ý³Ì£¬½«´úÂëÌù³öÀ´¡£
 Ê×ÏÈÏÈÌù³öÀ´OracleµÄ·ÖÒ³·ÖÒ³´æ´¢¹ý³Ì´úÂë°É¡£
 1.ÕâÊÇ°üµÄ´úÂë
 create or replace package DB_Oper is
  -- Author  : LIUBING
  -- Created : 2009-10-28 15:01:30
  -- Purpose : ²âÊÔOracleµ ......

ÓÉdzÈëÉî½²½âOracleÊý¾Ý¿â½ø³ÌµÄÏà¹Ø¸ÅÄî

 
OracleÊý¾Ý¿â½ø³Ì¸ÅÊö£º
Database buffer cacheÖ÷ÒªÓÃÓÚ´æ´¢Êý¾ÝÎļþÖеÄÊý¾Ý¿é
Êý¾Ý¿â¸ßËÙ»º´æµÄÊý¾Ý¿éÊǸßËÙ»º´æÓëÊý¾ÝÎļþ½øÐÐÐÅÏ¢½»»»µÄ»ù±¾µ¥Î»¡£ÔÚOracleÊý¾Ý¿â8iÒÔÇ°,Êý¾Ý¿é´óСֻÓÐÒ»ÖÖ,¶øOracleÊý¾Ý¿â9iÒÔºóÖ§³Ö2K,4K,8KB,16KB¼°32KBÎåÖÖ¡£
ÓÃÃüÁîSQL>SHOW PARAMETER DB¿ÉÒÔÏÔʾµ±Ç°Êý¾Ý¿âµÄBUFF ......

OracleÖÐStart with...Connect ByÀí½â¼°Ó÷¨

oracleÖÐconnect by priorʵÏֵݹé²éѯ
ÊÕ¼¯µÄ¼¸ÌõÔÚoracleÖÐͨ¹ýconnect by priorÀ´ÊµÏֵݹé²éѯ
Start with...Connect By×Ó¾äµÝ¹é²éѯһ°ãÓÃÓÚÒ»¸ö±íά»¤Ê÷ÐνṹµÄÓ¦Óá£
´´½¨Ê¾Àý±í£º
CREATE TABLE TBL_TEST
(
ID    NUMBER,
NAME VARCHAR2(100 BYTE),
PID   NUMBER &nbs ......

toad for oracle(µ¼Èëµ¼³öʵÀý)

Àý£º
create user his identified by his default tablespace users temporary tablespace temp;
grant connect,resource,dba to his;
create tablespace his
logging
datafile 'd:\oracle\product\10.2.0\oradata\zjxsh\his.ora' size 100M extent
management local segment space management auto;
exp his/ny@ny ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ