¸ß·ÖÇóASP.NET to oracleÊý¾ÝÒç³ö´íÎó
OCI-22053: Òç³ö´íÎó
ÎÒ²éÁËÏÂ
http://www.cnblogs.com/jackhuclan/archive/2008/11/13/1332575.html
Òâ˼ÊÇOracle ÊýÖµÊý¾ÝÀàÐÍ×î¶à¿É´æ´¢ 38 ¸ö×ֽڵľ«¶È¡£
µ±½« Oracle Êýֵת»»Îª¹«¹²ÓïÑÔÔËÐпâÊý¾ÝÀàÐÍʱ£¬
Oracle Öµ¿ÉÄÜ»á±äµÃ¹ý´ó¡£Õâ»áµ¼Ö Oracle OCI-22053 Òç³ö´íÎó¡£
µ«ÎÒµÄÓï¾äÊÇ
select deptno,job,avg(sal) from emp group by cube (deptno,job)
×¢Òâ¼Ó´ÖµÄ¹Ø¼ü×Ö£¬ÎªÔö¼ÓºáÏòºÍ×ÝÏò²»·Ö×éͳ¼Æ
ÎÒÈçºÎ²ÅÄÜʹͳ¼Æ½á¹û²»Òç³öÄØ£¿
try
GROUP BY deptno,job WITH ROLLUP
×î¼òµ¥µÄ½â¾ö°ì·¨:×öÒ»¸öemp±íµÄÊÓͼ,ÊÓͼÖÐÓà ROUNDº¯Êý·µ»Ø½á¹û¼¯,È»ºó¶ÔÊÓͼ½øÐÐͳ¼Æ²Ù×÷.
½â¾ö·½·¨ÊÇÓÃroundº¯Êý¡£
ÈçºÎʹÓà Oracle Round º¯數 (ËÄ捨ÎåÈë)
ÃèÊö : 傳»ØÒ»個數Öµ£¬該數ÖµÊÇ°´ÕÕÖ¸¶¨µÄС數λԪ數進ÐÐËÄ捨ÎåÈë運ËãµÄ結¹û¡£
SELECT ROUND( number, [ decimal_places ] ) from DUAL
參數:
number : Óû處ÀíÖ®數Öµ
decimal_places : ËÄ捨ÎåÈë , С數È¡幾λ ( 預設為 0 )
Sample :
select round(123.456) from dual; »Ø傳 123
select round(123.456, 0) from dual; »Ø傳 123
select round(123.456, 1) from dual; »Ø傳 123.5
selec
Ïà¹ØÎÊ´ð£º
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
ÎÒÓг§¼Ò×öµÄASPµÄ¼à¿Ø¼Ïñ£¨DVR£©µÄ¾ÖÓòÍø²¥·ÅµÄÔ´³ÌÐòÓë¿Ø¼þ£¬ÏëÒªÓÃASP.net×öÒ»¸öÊÓƵ»Ø·ÅµÄ³ÌÐò£¨ÀûÓÃËûµÄ¿Ø¼þ£©µ«²»ÖªÈçÏÂÈ¥×ö£¬Íû¸÷λָµã¡£
ÏȸãÇå³þËûÃǵĿؼþÊÇÔõôÓõÄ,
È»ºó¾ÍÖ±½ÓÓúÃÁË.
²»¹ý,Èç ......
ÇëÎÊһϣ¬ASP.NETÎÒÓÃÒ»¸ö²ãÖзÅÁËÒ»¸öÈÕÀú¿Ø¼þ£¬ÔÚµãÒ»¸ö°´Å¥Ê±£¬ÏÔʾÕâ¸ö²ã£¿ÏÖÔÚÎÊÌâÊÇÎÒÔڵ㰴ťʱ£¬ÎÒÏë°Ñ²ãÏÔʾÔÚ°´Å¥µÄÏ·½£¿¾ÍÏñÏÂÀÈÕÆڿؼþÒ»Ñù£¬ÎÒÓÃÊǵÄASP.NET C#
ÎÒÓÐÕâôһ¸öÈÕÆڿؼþ£¬£¡µã»÷¿ÉÒÔÑ ......
ÎÒÏëÿÌì°ëÒ¹×Ô¶¯Éú³É¾²Ì¬Ò³Ãæ¡£
ÔõôʵÏÖÕâ¸ö·½·¨¡£
ÄÇλ¸ßÊÖÖªµÀ£¬Çë´Í½ÌÏ¡£
д·þÎñ!
Ôõôд
д·þÎñ ¿ªÏß³Ì Ð´Îļþ ÈëÊý¾Ý¿â
д·þÎñ»òÕßÓÿªÔ´µÄµ÷¶È¿ò¼ÜQuartz.net
½¨ÒéÓúóÕߣ¬ºóÕßÌṩ±È½ÏÁé»îµ ......
¶ÁÈ¡Ò»·ÝExcelÎĵµ£¬½øÐÐÊý¾Ý²Ù×÷¡£
Excel¸ñʽΪ£º
Ãû³Æ 55 55 55 55 55 55
ʱ¼ä 0:00 1:00 2:00 3:00 4:00 5:00
²è»¨ÄÏ863ÏßµçÁ÷ 65.191 57.453 55.576 47.604 36.113 55.342
ÔÚ¶ÁÈ¡Êý¾Ýʱ£¬·¢ÏÖʱ¼ ......