Oracle¶àÐмǼºÏ²¢/Á¬½Ó/¾ÛºÏ×Ö·û´®µÄ¼¸ÖÖ·½·¨
ʲôÊǺϲ¢¶àÐÐ×Ö·û´®£¨Á¬½Ó×Ö·û´®£©ÄØ£¬ÀýÈ磺
SQL> desc test;
Name Type Nullable Default Comments
------- ------------ -------- ------- --------
COUNTRY VARCHAR2(20) Y
CITY VARCHAR2(20) Y
SQL> select * from test;
COUNTRY CITY
-------------------- --------------------
Öйú ̨±±
Öйú Ïã¸Û
Öйú ÉϺ£
ÈÕ±¾ ¶«¾©
ÈÕ±¾ ´óÚæ
ÒªÇóµÃµ½ÈçϽá¹û¼¯£º
------- --------------------
Öйú ̨±±,Ïã¸Û,ÉϺ£
ÈÕ±¾ ¶«¾©£¬´óÚæ
ʵ¼Ê¾ÍÊǶÔ×Ö·ûʵÏÖÒ»¸ö¾ÛºÏ¹¦ÄÜ£¬Î񼆮æ¹ÖΪʲôOracleûÓÐÌṩ¹Ù·½µÄ¾ÛºÏº¯ÊýÀ´ÊµÏÖËüÄØ£º£©
ÏÂÃæ¾Í¶Ô¼¸ÖÖ¾³£Ìá¼°µÄ½â¾ö·½°¸½øÐзÖÎö£¨ÓÐÒ»¸öÆÀ²â±ê×¼×î¸ß¡ï¡ï¡ï¡ï¡ï£©£º
1.±»¼¯ºÏ×ֶη¶Î§Ð¡Çҹ̶¨ÐÍ Áé»îÐÔ¡ï ÐÔÄÜ¡ï¡ï¡ï¡ï ÄÑ¶È ¡ï
ÕâÖÖ·½·¨µÄÔÀíÔÚÓÚÄãÒѾ֪µÀCITY×ֶεÄÖµÓм¸ÖÖ£¬ÇÒ»¹²»ËãÌ«¶à£¬Èç¹ûÌ«¶àÕâ¸öSQL¾Í»áÏ൱µÄ
³¤¡£¡£¿´Àý×Ó£º
SQL> select t.country,
2 MAX(decode(t.city,'
Ïà¹ØÎĵµ£º
ΪÕâЩÓû§ÃûÉèÖÃ×㹻ǿ׳µÄ¿ÚÁî»òËø¶¨ÎÞÓõÄĬÈÏÓû§¡£
SQLÓï¾äÐ޸ģº
Á¬½ÓÖÁOracleºóʹÓÃÈçÏÂÃüÁîÐ޸ĿÚÁî:
alter user system£¨Óû§Ãû£© identified by manager£¨ÃÜÂ룩;
Á¬½ÓÖÁOracleºóʹÓÃÈçÏÂÃüÁîËø¶¨Õ˺Å:
alter user test£¨Óû§Ãû£© account lock;
ͼÐδ°¿ÚÐ޸ģº
Oracle·þÎñopenviewÉϵÄÓû§£ºSCOT ......
CmdÃüÁîÐÐÊäÈëlsnrctl½øÈë¼àÌýģʽ£¬Í¨¹ýset passwordÉèÖÃÃÜÂë¡£
ͨ¹ý change_password ÐÞ¸ÄÃÜÂë¡£
LSNRCTL> help
ÒÔϲÙ×÷¿ÉÓÃ
ÐǺŠ(*) ±íʾÐ޸ķû»òÀ©Õ¹ÃüÁ
start stop &nbs ......
Oracle 9iÐÔÄܵ÷Õû
/* *
×÷Õß:Å·³¯¾´
QQ:35712069
ÊÖ»ú:13873195792
Çë×ªÔØÕß²»Òª¸ü¸ÄÔ°æÄÚÈÝ
*/
1¡¢ÉèÖúÏÊʵÄSGA
¡¡¡¡³£³£ÓÐÈ˱§Ô¹·þÎñÆ÷Ó²¼þºÜºÃ£¬µ«ÊÇOracle¾ÍÊǺÜÂý¡£ºÜ¿ÉÄÜÊÇÄÚ´æ·ÖÅä²»ºÏÀíÔì³ÉµÄ¡£
¡¡¡¡(1)¼ÙÉèÄÚ´æÓÐ512M£¬Õâͨ³£ÊÇСÐÍÓ¦Ó᣽¨ÒéOracleµÄSGA´óÔ¼240M£¬ÆäÖУº¹²Ïí³Ø£¨SHARED_POOL ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
¹«ÍøÖÕÓÚͨµÄ£¬ÎÒµÄubuntu
Ò²ÖÕÓÚ¿ÉÒÔ¼ÌÐøÊ¹ÓÃÁË¡£¡£¡£
Ê×ÏȰѱ¾×ÓµÄubuntu
´Ó9.04
Éý¼¶µ½10.04
£¬·¢ÏÖϵͳ±ä³ÉÓ¢ºº»ìÓÃÁË£¬ÖØÑ¡ÓïÑÔÖ§³Ö°üÒ²²»¿ÉÒÔ£¬ÊäÈë·¨Ò²Ìí¼Ó²»ÉÏ£¬µ¹ÊÇûÓÐÍøÉÏÓÐÈËÌáµ½µÄϵͳÏìÓ¦·Ç³£»ºÂýµÄÎ ......
select distinct id
from table t
where rownum < 10
order by t.id desc;
ÉÏÊöÓï¾äµÄ¹ýÂËÌõ¼þÖ´ÐÐ˳Ðò ÏÈwhere --->order by --->distinct
Èç¹ûÓÐgroup byµÄ»° group by ÔÚorder byÇ°ÃæµÄ ......