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

SQL Plus

SQL> setsqlprompt"_user _privilege> " ͨ¹ýÒÔÉÏÉèÖã¬ÄãµÄsqlplusÌáʾ±êʶ¾Í³ÉÁËÒÔϸñʽÁË£º SYS AS SYSDBA> Õâ¾Í±íÃ÷µ±Ç°µÄµÇ¼ÕʺÅÊÇSYS£¬Éí·ÝÊÇSYSDBA¡£Çë×¢ÒâÔÚÉÏÃæÓï¾äÖÐʹÓÃÁËÁ½¸öÌØÊâµÄÔ¤¶¨ÒåµÀµÂ±äÁ¿£º_userºÍ_privilege£¬·Ö±ð¶¨ÒåÁ˵±Ç°Óû§ºÍÕâ¸öÓû§µÄµÇ¼Éí·Ý£¨È¨ÏÞ£©¡£ÏÖÔÚÎÒÃÇÔÙÔö¼ÓһЩÆäËûÄÚÈÝ¡£±ÈÈçÎÒ³ýÁËÏëÖªµÀÒÔÉÏÐÅÏ¢Í⣬»¹ÏëÖªµÀµ±Ç°µÄµÇ¼ʱ¼ä£º SQL> setsqlprompt"_user _privilege on _date>" SYS AS SYSDBA on 31-8ÔÂ-05> ÔÙÔö¼ÓÒ»¸öÁ¬½ÓÐÅÏ¢¿´£¬ÕâÑù¾Í¿ÉÒÔÖ¸³öÄãµÇ¼µÄÊÇÄĸö·þÎñÆ÷µÄ£º SQL>setsqlprompt"_user on _date at _connect_identifier>" SYS on 31-8ÔÂ-05 atteng> µ«ÊÇÇ°ÃæµÄµ±Ç°Ê±¼äÐÅÏ¢Ö»ÓÐÈÕÆÚ£¬Èç¹ûÐèÒª¾«È·µ½µ±Ç°µÄÈ·ÇÐʱ¼äÄØ£º SYS on 31-8ÔÂ-05 atteng>alter session setnls_date_format='yyyy-mm-ddhh24:mi:ss'; »á»°ÒѸü¸Ä¡£ -------------- 15:02:59 SQL> SELECT USER ||'@'|| REPLACE (GLOBAL_NAME, '.WORLD', NULL) GLOBAL_NAME from GLOBAL_NAME ·½·¨2£º ¼ÓÔÚlogin.sql»òglogin.sqlÎļþµÄºóÃ棺 DEFINE gname = 'not connected'
COLUMN global_name new_value gname
SET termout off
SELECT USER ||'@'|| REPLACE (GLOBAL_NAME, '.WORLD', NULL) GLOBAL_NAME
from GLOBAL_NAME;
SET termout on
SET sqlprompt '&&gname> ' ÕâÑùÿ´ÎµÇ¼SQLPLUSÌáʾ·û»á×Ô¶¯¸ü¸ÄΪ¡°µ±Ç°Óû§Ãû@È«¾ÖÊý¾Ý¿âÃû> ¡±µÄÐÎʽ¡£ ----------------------------------------------------------------------------------------------- Èç¹ûlogin.sqlµÄµ±Ç°Ä¿Â¼sqlplusµÇ¼£¬Ôò×Ô¶¯¼ÓÔظÃsql¡£Èç¹û²»ÔÚµ±Ç°Ä¿Â¼Ôò@¸Ãsql£¬Ð§¹ûÒ»Ñù¡£ 1. ÏÔʾµ±Ç°ÔÚ´´½¨º¯Êý¡¢´æ´¢¹ý³Ì¡¢´¥·¢Æ÷¡¢°üµÈ¶ÔÏóµÄ´íÎóÐÅÏ¢
Show error
µ±´´½¨Ò»¸öº¯Êý¡¢´æ´¢¹ý³ÌµÈ³ö´íʱ£¬±ä¿ÉÒÔÓøÃÃüÁî²é¿´ÔÚÄǸöµØ·½³ö´í¼°ÏàÓ¦µÄ³ö´íÐÅÏ¢£¬½øÐÐÐ޸ĺóÔٴνøÐбàÒë¡£ 2. ÏÔʾÊý¾Ý¿âµÄ°æ±¾£º
show REL[EASE] 3. ÏÔʾµ±Ç°µÄÓû§Ãû
show user


Ïà¹ØÎĵµ£º

SQLÊý¾Ý¿â£ºÒòΪÎļþ×é 'PRIMARY' ÒÑÂúµÄ½â¾ö·½·¨

 1.¼ì²éÄãÊÇ·ñÏÞÖÆÁËÎļþÔö³¤:  
       ÆóÒµ¹ÜÀíÆ÷--ÓÒ¼üÄãµÄÊý¾Ý¿â--ÊôÐÔ--Êý¾ÝÎļþ--¿´¿´ÓÐûÓÐÉèÖÃÎļþµÄ×î´óÖµ  
   
   2.¼ì²éÄãµÄ´ÅÅÌ·ÖÇø¸ñʽ,Èç¹û²»ÊÇNTFS·ÖÇø,Ôò»áÓÐÏÞÖÆ,½«´ÅÅÌ·ÖÇø¸ñʽ¸Ä³ÉNTFS  
 &n ......

Êý¾Ý¿âÃæÊÔ³£ÓòâÊÔÌâ(SQL Server)

ÎÊÌâÃèÊö:
¡¡¡¡Îª¹ÜÀí¸ÚλҵÎñÅàѵÐÅÏ¢£¬½¨Á¢3¸ö±í:
¡¡¡¡S (S#,SN,SD,SA) S#,SN,SD,SA ·Ö±ð´ú±íѧºÅ¡¢Ñ§Ô±ÐÕÃû¡¢ËùÊôµ¥Î»¡¢Ñ§Ô±ÄêÁä
¡¡¡¡C (C#,CN ) C#,CN ·Ö±ð´ú±í¿Î³Ì±àºÅ¡¢¿Î³ÌÃû³Æ
¡¡¡¡SC ( S#,C#,G ) S#,C#,G ·Ö±ð´ú±íѧºÅ¡¢ËùÑ¡Ð޵Ŀγ̱àºÅ¡¢Ñ§Ï°³É¼¨
¡¡¡¡1. ʹÓñê×¼SQLǶÌ×Óï¾ä²éѯѡÐ޿γÌÃû³ÆΪ&rsquo ......

¾­µäSQLÓï¾ä´óÈ«

¾­µäSQLÓï¾ä´óÈ«
ÏÂÁÐÓï¾ä²¿·ÖÊÇMssqlÓï¾ä£¬²»¿ÉÒÔÔÚaccessÖÐʹÓá£
¡¡¡¡SQL·ÖÀࣺ
¡¡¡¡DDL—Êý¾Ý¶¨ÒåÓïÑÔ(CREATE£¬ALTER£¬DROP£¬DECLARE)
¡¡¡¡DML—Êý¾Ý²Ù×ÝÓïÑÔ(SELECT£¬DELETE£¬UPDATE£¬INSERT)
¡¡¡¡DCL—Êý¾Ý¿ØÖÆÓïÑÔ(GRANT£¬REVOKE£¬COMMIT£¬ROLLBACK)
¡¡¡¡Ê×ÏÈ,¼òÒª½éÉÜ»ù´¡Óï¾ä£º
¡¡¡¡1¡¢Ë ......

HibernateµÄÔ­ÉúSQL²éѯ

 ÕÛÌÚÁËÎÒ°ëÌìÖÕÓڸ㶨ÁË
²Î¿¼ÁËÕâ¸öÎÄÕ£ºhttp://doc.javanb.com/hibernate-reference-3-2-0-zh/ch16.html
final static String querySql = "select {enterprise.*}, {dict.*} ,{balancd.*}, {weightinfo.*}  "
   + "from weight_info weightinfo left outer join t_dict dict on {weightinf ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ