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

ÖØбàÒëËùÓÐÎÞЧµÄPL/SQLÄ£¿é£¨¶ÔÏó£©

µ±OracleÊý¾Ý¿â´´½¨Íê³Éºó£¬ÏµÍ³½«»á×Ô¶¯ÔËÐÐutlrp.sqlÕâ¸ö½Å±¾Îļþ£¨D:\oracle\product\10.1.0\Db_1\RDBMS\ADMIN£©£¬µ«ÊÇ£¬µ±Í¨¹ý¶¨ÖÆ°²×°ÀàÐ͵ķ½Ê½´´½¨ÁËÊý¾Ý¿âʱ£¬ÏµÍ³Ôò²»»áÔËÐÐutlrp.sqlÕâ¸ö½Å±¾£¬ËùÒÔ£¬½¨ÒéÔÚ´´½¨¡¢¸üлòǨÒÆÒ»¸öÊý¾Ý¿âºó£¬ÔËÐÐÒ»ÏÂutlrp.sqlÕâ¸ö½Å±¾£¬ÒÔÑéÖ¤Êý¾Ý¿â°²×°ÊÇ·ñ³É¹¦£¬ÕâÑù¿ÉÒÔÖØбàÒëËùÓпÉÄÜ´¦ÓÚÎÞЧµÄPL/SQLÄ£¿é£¨°ü¡¢´æ´¢¹ý³Ì¡¢ÀàÐÍ¡¢º¯ÊýµÈµÈ£©£¬Õâ¸ö²½ÖèÊÇ¿ÉÑ¡µÄ£¬µ«ÊÇÍƼö¸Ã²½Öè¡£×¢Ò⣺ÔÚÔËÐиýű¾Æڼ䣬Êý¾Ý¿âÖв»ÔÊÐíÓÐÆäËüµÄÊý¾Ý¿â¶¨ÒåÓïÑÔ£¨DDL£©ÔËÐв¢±£Ö¤STANDARDºÍDBMS_STANDARDÁ½¸ö°ü´¦ÓÚÓÐЧ״̬¡£
²½Ö裺
1£©Æô¶¯SQL*PLUS²¢ÒÔDBA½ÇÉ«µÄÕË»§Á¬½Óµ½Êý¾Ý¿â
SQL>sqlplus /nolog
SQL>conn lijing/lijing as sysdba
SQL>@D:\oracle\product\10.1.0\Db_1\RDBMS\ADMIN\utlrp.sql


Ïà¹ØÎĵµ£º

AccessºÍSQL2000ÖÐÓï¾äµÄÇø±ð

1 £¬¶ÔÓÚÈÕÆÚ×Ö¶Î×Ö¶Î
access±íʾΪ£º#1981-28-12#
SQLSERVER2000±íʾΪ£º''1981-02-12''
2,SQLÓï¾äÇø±ð£¬select ,update ÔÚ¶Ôµ¥±í²Ù×÷ʱ¶¼²î²»¶à£¬
µ«¶à±í²Ù×÷ʱupdateÓï¾äµÄÇø±ðACCESSÓëSQLSERVERÖеÄUpdateÓï¾ä¶Ô±È:
SQLSERVERÖиüжà±íµÄUpdateÓï¾ä:
Update Tab1
SET a.Name = b.Name
from Tab1 a,Tab2 b
Whe ......

ʵÏÖStandby SQL ServerÊý¾Ý¿âµÄ»ù±¾²½Öè

¡¡¡¡Ê×ÏÈ£¬Ã»ÓÐÈκα¸·ÝÊý¾Ý¿â?
¡¡¡¡ÎÒÃÇʹÓõķþÎñÆ÷Ó²¼þ£¬¿ÉÄÜÊÇÓÉÓÚʹÓÃʱ¼ä¹ý³¤£¬¶øʧ°Ü;
¡¡¡¡ÊÓ´°ÏµÁзþÎñÆ÷ÉÏ£¬¿ÉÄÜÊÇÀ¶É«»ò¸ÐȾÁ˲¡¶¾£¬SQL ServerÊý¾Ý¿â£¬Ò²¿ÉÄÜÊÇÓÉÓÚÀÄÓûò´íÎó²¢Í£Ö¹ÔËÐС£
¡¡¡¡ÈçºÎÓÐЧµØ±¸·ÝSQL ServerÊý¾Ý¿â£¬ÒÔ±ÜÃâʵ¼Ê·¢ÉúµÄ¹ÊÕÏÍ£»úʱ¼ä³¤£¬Ã¿¸öϵͳ¹ÜÀíÔ±±ØÐëÃæ¶ÔµÄÈÎÎñ¡£
¡¡¡¡2£¬¶Ô± ......

»Ö¸´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;
......

sql²éÖظ´¼Ç¼

ÓÃselectÓï¾ä£¬²éѯÖظ´¼Ç¼
¼ÙÉ裬±íÃûΪ T1 ×Ó¶ÎΪ A,B,C
select count(*) ,A,B,C from T1
   group by A,B,C having count(*) > 1
²âÊÔÊý¾Ý£º
    A100          B100          C100&nbs ......

JSP·ÀSQL×¢Èë¹¥»÷

µÚÒ»ÖÖ²ÉÓÃÔ¤±àÒëÓï¾ä¼¯£¬ËüÄÚÖÃÁË´¦ÀíSQL×¢ÈëµÄÄÜÁ¦£¬Ö»ÒªÊ¹ÓÃËüµÄsetString·½·¨´«Öµ¼´¿É£º
String sql= "select * from users where username=? and password=?;
PreparedStatement preState = conn.prepareStatement(sql);
preState.setString(1, userName);
preState.setString(2, password);
ResultSet rs = ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ