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

»Ö¸´oracleÖÐÓÃpl sqlÎóɾ³ýdropµôµÄ±í


²é¿´»ØÊÕÕ¾Öбí
select object_name,original_name,partition_name,type,ts_name,createtime,droptime from recyclebin;
»Ö¸´±í
SQL
>flashback table test_drop to before drop;»ò
SQL
>flashback table "BIN$b+XkkO1RS5K10uKo9BfmuA==$0" to before drop;
×¢£º±ØÐë9i»ò10gÒÔÉÏ°æ±¾Ö§³Ö£¬flashbackÎÞ·¨»Ö¸´È«ÎÄË÷Òý
ÒÔÏÂΪ²Î¿¼×ÊÁÏ
 Ê¹Óà Oracle Database 10g ÖеÄÉÁ»Ø±íÌØÐÔ£¬¿ÉÒÔºÁ²»·ÑÁ¦µØ»Ö¸´±»ÒâÍâɾ³ýµÄ±í
¡¡¡¡ÒÔÏÂÊÇÒ»¸ö²»¸Ã·¢ÉúÈ´¾­³£·¢ÉúµÄÇé¿ö£ºÓû§É¾³ýÁËÒ»¸ö·Ç³£ÖØÒªµÄ±í ¨D µ±È»ÊÇÒâÍâµØɾ³ý ¨D ²¢ÐèÒª¾¡¿ìµØ»Ö¸´¡££¨ÔÚijЩʱºò£¬Õâ¸ö²»ÐÒµÄÓû§¿ÉÄܾÍÊÇ DBA£¡£©
¡¡¡¡Oracle9i Database ÍƳöÁËÉÁ»Ø²éѯѡÏîµÄ¸ÅÄÒÔ±ã¼ìË÷¹ýȥij¸öʱ¼äµãµÄÊý¾Ý£¬µ«Ëü²»ÄÜÉÁ»Ø DDL
²Ù×÷£¬Èçɾ³ý±íµÄ²Ù×÷¡£Î¨Ò»µÄ»Ö¸´·½·¨ÊÇÔÚÁíÒ»¸öÊý¾Ý¿âÖÐʹÓñí¿Õ¼äµÄʱ¼äµã»Ö¸´£¬È»ºóʹÓõ¼³ö/µ¼Èë»òÆäËû·½·¨£¬ÔÚµ±Ç°Êý¾Ý¿âÖÐÖØд´½¨±í¡£ÕâÒ»¹ý³ÌÐè
Òª DBA ½øÐдóÁ¿¹¤×÷²¢ÇҺķѱ¦¹óµÄʱ¼ä£¬¸ü²»ÓÃ˵»¹ÒªÊ¹ÓÃÁíÒ»¸öÊý¾Ý¿â½øÐпË¡¡£
¡¡¡¡ÇëʹÓà Oracle Database 10g ÖеÄÉÁ»Ø±íÌØÐÔ£¬ËüʹµÃ±»É¾³ý±íµÄ»Ö¸´¹ý³ÌÈçִͬÐм¸ÌõÓï¾äÒ»Ñù¼òµ¥¡£ÈÃÎÒÃÇÀ´¿´¸ÃÌØÐÔÊÇÈçºÎ¹¤×÷µÄ¡£
¡¡¡¡É¾³ýÄǸö±í£¡
¡¡¡¡Ê×ÏÈ£¬ÈÃÎÒÃDz鿴µ±Ç°Ä£Ê½ÖÐµÄ±í¡£
¡¡¡¡SQL
> select * from tab;
¡¡¡¡TNAME
¡¡¡¡TABTYPE
¡¡¡¡CLUSTERID
¡¡¡¡---------------------
- --
-- ---
------
¡¡¡¡RECYCLETEST
¡¡¡¡TABLE
¡¡¡¡ÏÖÔÚ£¬ÎÒÃÇÒâÍâµØɾ³ýÁË¸Ã±í£º
¡¡¡¡SQL
> drop table recycletest;
¡¡¡¡Table dropped.
¡¡¡¡ÏÖÔÚÈÃÎÒÃÇÀ´²é¿´¸Ã±íµÄ״̬¡£
¡¡¡¡SQL
> select * from tab;
¡¡¡¡TNAME
¡¡¡¡TABTYPE
¡¡¡¡CLUSTERID
¡¡¡¡---------------------------
- --
-- ---
------
¡¡¡¡BIN$04LhcpndanfgMAAAAAANPw==$0 TABLE
¡¡¡¡±í RECYCLETEST ÒѲ»´æÔÚ£¬µ«ÊÇÇë×¢Òâ³öÏÖбí
BIN$04LhcpndanfgMAAAAAANPw==$0¡£Õâ¾ÍÊÇËù·¢ÉúµÄÊÂÇ飺±»É¾³ýµÄ±í RECYCLETEST
²¢Ã»ÓÐÍêÈ«Ïûʧ£¬¶øÊÇÖØÃüÃûΪһ¸öÓÉϵͳ¶¨ÒåµÄÃû³Æ¡£Ëü´æÔÚÓÚͬһ¸ö±í¿Õ¼äÖУ¬¾ßÓÐÓëԭʼ±íÏàͬµÄ½á¹¹¡£Èç¹ûÔڸñíÉ϶¨ÒåÁËË÷Òý»ò´¥·¢Æ÷£¬ÔòËüÃÇÒ²±»ÖØÃü
Ãû£¬Ê¹ÓÃÓë±íÏàͬµÄÃüÃû¹æÔò¡£ÈκÎÏà¹ØÔ´£¨Èç¹ý³Ì£©¶¼Ê§Ð§£»Ô­Ê¼±íµÄ´¥·¢Æ÷ºÍË÷Òý±»¸ÄΪ·ÅÖÃÔÚÖØÃüÃûµÄ±í
BIN$04LhcpndanfgMAAAAAANPw==$0 ÉÏ£¬±£³Ö±»É¾³ý±íµÄÍêÕû¶ÔÏ


Ïà¹ØÎĵµ£º

ORACLE to_charº¯ÊýÏê½â


The following are number examples for the to_char
function.
to_char
(1210.73,
'9999.9')
would return '1210.7'
to_char
(1210.73,
'9,999.99')
would return '1,210.73'
to_char
(1210.73,
'$9,999.00')
would return
'$1,210.73'
to_char
(21,
'000099')
would return '000021'
The foll ......

ORACLEÊý¾Ý¿âÉè¼ÆÓëÓÅ»¯


<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 ......

OracleÓû§¹ÜÀí

oracleÓû§¹ÜÀí
                           
                     ......

SQL²éѯЧÂÊ 100wÊý¾Ý²éѯֻҪ1Ãë

»úÆ÷Çé¿ö
p4: 2.4
ÄÚ´æ: 1 G
os: windows 2003
Êý¾Ý¿â: ms sql server 2000
Ä¿µÄ: ²éѯÐÔÄܲâÊÔ,±È½ÏÁ½ÖÖ²éѯµÄÐÔÄÜ
SQL²éѯЧÂÊ step by step
-- setp 1.
-- ½¨±í
create table t_userinfo
(
userid int identity(1,1) primary key nonclustered,
nick varchar(50) not null default '',
classid int not nul ......

SQLµÄÓÅ»¯

´ó¼Ò¶¼ÔÚÌÖÂÛ¹ØÓÚÊý¾Ý¿âÓÅ»¯·½ÃæµÄ¶«¶«£¬¸ÕºÃ²ÎÓ뿪·¢ÁËÒ»¸öÊý¾Ý²Ö¿â·½ÃæµÄÏîÄ¿£¬ÒÔϵÄÒ»µã¶«Î÷ËãÊÇÊý¾Ý¿âÓÅ»¯·½ÃæµÄѧϰ+ʵսµÄһЩÐĵÃÌå»áÁË£¬ÄóöÀ´´ó¼Ò¹²Ïí¡£»¶Ó­ÅúÆÀÖ¸Õý°¢£¡
SQLÓï¾ä£º
ÊǶÔÊý¾Ý¿â(Êý¾Ý)½øÐвÙ×÷µÄΩһ;¾¶£»
ÏûºÄÁË70%~90%µÄÊý¾Ý¿â×ÊÔ´£»¶ÀÁ¢ÓÚ³ÌÐòÉè¼ÆÂß¼­£¬Ïà¶ÔÓÚ¶Ô³ÌÐòÔ´´úÂëµÄÓÅ»¯£¬¶ÔSQ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ