Oracle»ù±¾
1.desc(ÃèÊö£© emp ÃèÊöempÕâÕűí
2.desc dept ²¿Ãűí
3.desc salgrade нˮµÈ¼¶
4.select *from table ²éÕÒ±íÖеÄÔªËØ
5.dual ÊÇϵͳÖеÄÒ»ÕÅ¿Õ±í
6.select *from dual
7.select sysdate from dual È¡³öϵͳʱ¼ä
8.select ename,sal*12 "annul sal"(È¡µÄ±ðÃû£© from emp; ²éÕÒÓû§ÐÕÃûºÍÓû§µÄÄêн
9.Èκκ¬ÓпÕÖµµÄÊýѧ±í´ïʽµÄÖµ¶¼ÊÇ¿ÕÖµ
select ename,sal*12+comm from emp;
10.select ename||sal from emp ÆäÖеÄ||Ï൱ÓÚ½«salÈ«²¿×ª»¯Îª×Ö·û´®
11.±íʾ×Ö·û´®µÄ·½·¨
select ename ||'ajjf' from emp;
12.Èç¹ûÆäÖÐÓÐÒ»¸öµ¥ÒýºÅ¾ÍÓÃ2¸öµ¥ÒýºÅÀ´´úÌæËû
select ename||'sakj' 'lds'from emp;
13.select distinct deptno from emp (È¥³ý²¿ÃÅ×Ö¶ÎÖÐÖظ´µÄ²¿·Ö,¹Ø¼ü×Ödistinct)
14.select distinct deptno,job from emp;(È¥³ýÕâ2¸ö×Ö¶ÎÖÐÖظ´µÄ×éºÏ)
15.select *from dept where deptno=10; È¡³öÌõ¼þ(È¡³ö²¿ÃűàºÅΪ10µÄ¼Ç¼)
16.select * from emp where ename='CLIRK'; È¡³ö²¿ÃÅÖÐÐÕÃûΪclirkµÄ¼Ç¼(×¢ÒâÈ¡³ö¹ý³ÌÖÐenameÓõ¥ÒýºÅ¸ô¿ª)
17.select ename,sal from emp where sal>1500; È¡³ö²¿ÃÅÖÐнˮ´óÓÚ1500µÄÈ˵ÄÐÕÃû
18.select ename,sal,deptno from emp where deptno<> 10 È¡³ö²¿ÃÅÖеIJ¿ÃźŲ»µÈÓÚ10µÄ
19.select ename,sal,deptno from emp where ename>'CBA' È¡³ö²¿ÃÅÖÐÔ±¹¤Ãû×Ö´óÓÚCBAµÄÔ±¹¤(ʵ¼Ê±È½ÏµÄÊÇACIISÂë)
20.select ename,sal from emp where sal between 800 and 1500
select ename,sal from emp where sal>=800 and sal<=1500; (È¡³ö800ºÍ1500Ö®¼äµÄÊý)
21.select ename,sal,comm from emp where comm is null (Ñ¡³öÆäÖеĿÕÖµ)
select enmae,sal,comm from emp where comm is not null(Ñ¡³öÆäÖеķǿÕÖµ)
22.select ename,sal,comm from emp where sal in (800,1500,2000);È¡³öÕâ3ÕßÖ®ÖеÄ
select ename,sal,comm from emp where ename in('simth');
23.select ename,sal,hiredate from emp where hiredata>'3-04ÔÂ-81';Ðû´«·ûºÏÌõ¼þµ
Ïà¹ØÎĵµ£º
OracleÖÐʹÓÃIMP DosÃüÁî µ¼ÈëDICÊý¾Ý¿â±¸·Ý¹ý³Ì
1.ʹÓþßÓн¨Á¢±í¿Õ¼äºÍÓû§È¨ÏÞµÄÓû§µÇ¼Oracle£»
2.½¨Á¢ÐèÒªµÄ±í¿Õ¼ä£»
3.½¨Á¢ÐèÒªµÄÓû§£¨Óû§Ãû£¬ÃÜÂ룬ĬÈϱí¿Õ¼ä£¬ÁÙʱ±í¿Õ¼ä£¬È¨ÏÞ£©
4.´ò¿ªDOS´°¿Ú£¬ÔÚÃüÁîÐÐÖÐÊäÈëIMP£»
5.ÓõÚÈý²½Öн¨Á¢ºÃµÄÓû§µÇ¼Êý¾Ý¿â£»
6.ÊäÈëDICÎļþµÄÍêȫ·¾¶£¬°´ÕÕÌáʾѡ ......
oracleѧϰ±Ê¼Ç_´¥·¢Æ÷
´¥·¢Æ÷
ÊÇÌض¨Ê¼þ³öÏÖµÄʱºò£¬×Ô¶¯Ö´ÐеĴúÂë¿é¡£ÀàËÆÓÚ´æ´¢¹ý³Ì£¬µ«ÊÇÓû§²»ÄÜÖ±½Óµ÷ÓÃËûÃÇ¡£
¹¦ÄÜ£º
1¡¢ ÔÊÐí/ÏÞÖƶԱíµÄÐÞ¸Ä
2¡¢ ×Ô¶¯Éú³ÉÅÉÉúÁУ¬±ÈÈç×ÔÔö×Ö¶Î
3¡¢ Ç¿ÖÆÊý¾ÝÒ»ÖÂÐÔ
4¡¢ ÌṩÉó¼ÆºÍÈÕÖ¾¼Ç¼
5¡¢ ·ÀÖ¹ÎÞЧµÄÊÂÎñ´¦Àí
6¡¢ ÆôÓø´ÔÓµÄÒµÎñÂß¼
¿ªÊ¼
create trigger biufe ......
Oracle½ø³Ì½á¹¹
1. Oracle½ø³Ì¼ò½é
ÿ¸öÁ¬½Óµ½OracleµÄÓû§ÐèÒªÔËÐÐÁ½¸öÄ£¿é²ÅÄÜ·ÃÎÊOracleʵÀý¡£
¡£Ó¦ÓóÌÐò»òOracle¹¤¾ß£ºÊý¾Ý¿âÓû§ÐèÒªÔËÐÐÊý¾Ý¿âÓ¦ÓóÌÐò»òOracle¹¤¾ß£¨ÀýÈçSQL*Plus£©£¬ÏòOracleÊý¾Ý¿â·þÎñÆ÷Ìá½»SQLÓï¾ä¡£
¡£OracleÊý¾Ý¿â·þÎñÆ÷Ä£¿é£ºÎªÓû§Ìṩ·þÎñµÄOracleÊý¾Ý¿â³ÌÐò£¬¸ºÔð½âÊÍÖ´ÐÐÓ¦ÓóÌÐòÌá½» ......
oracleÖ´Ðмƻ®Ïà¹Ø¸ÅÄî http://blog.csdn.net/wh62592855/archive/2009/11/06/4778343.aspx
1. ʲôÊÇÖ´Ðмƻ®£¿ÎªÊ²Ã´ÒªÁ˽âÖ´Ðмƻ®£¿
ΪÁËÖ´ÐÐÒ»ÌõsqlÓï¾ä£¬oracle¿ÉÄܱØÐëÒªÖ´ÐÐijЩ²½ÖèµÄ²Ù×÷£¬Ã¿Ò»²½Öè¿ÉÄÜÊÇ´ÓÊý¾Ý¿âÖÐÎïÀí¼ìË÷Êý¾ÝÐУ¬»òÕßÓÃijÖÖ·½·¨×¼±¸Êý¾ÝÐУ¬¹© ......