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

OracleÖеÄNumberºÍFloatÀàÐÍ

NumberÀàÐÍ
Oracle number datatype Óï·¨£ºNUMBER[(precision [, scale])]
ÓÐЧΪ£º´Ó×ó±ßµÚÒ»¸ö²»Îª0µÄÊýËãÆðµÄλÊý¡£
scale > 0
   ¾«È·µ½Ð¡ÊýµãÓÒ±ßs룬²¢ËÄÉáÎåÈ롣Ȼºó¼ìÑéÓÐЧλÊÇ·ñ <= p¡£
scale < 0
   ¾«È·µ½Ð¡Êýµã×ó±ßs룬²¢ËÄÉáÎåÈ롣Ȼºó¼ìÑéÓÐЧλÊÇ·ñ <= p + |s|¡£
scale = 0
    NUMBER±íʾÕûÊý
FloatÀàÐÍ
¡¾copy¡¿½ñÌìÓÐÈËÎÊÎÒ£¬Ëû°Ñ×Ö¶ÎÀàÐÍÉè¼Æ³Éfloat(2)ºó£¬²åÈëÊý¾Ý93.5£¬ºó£¬ÎªÊ²Ã´±ä³ÉÁË90£¿
ΪÁË˵Ã÷Õâ¸öÎÊÌ⣬ÎÒÃÇÏÈÀ´¿´Ò»¶Î»°£¨http://www.cnoug.org/viewthread.php?tid=56643£©£ºOracle Online Help ˵£ºFLOAT(b) specifies a floating-point number with binary precision b. The precision b can range from 1 to 126. To convert from binary to decimal precision, multiply b by 0.30103¡£
¸ù¾ÝÕâ¶Î»°£¬ÎÒÃÇ¿ÉÒÔ¿´µ½£¬float(2)ÖеÄ2ÊÇÒ»¸öbinary precision£¬¶ø²»ÊÇÎÒÃdz£ÓõÄdecimal precision¡£ËûÃÇÖ®¼äµÄ»»Ëã¹ØϵÊÇ£ºbinary precision£½int(b*0.30103)£¬Òò´ËÎÒÃÇÕâÀïʵ¼ÊÉϵľ«¶ÈÓ¦¸ÃµÈÓÚint(2*0.30103)=0£¬¼´Ð¡Êýµãºó¾«¶ÈΪ0¡£
»Øµ½ÎÒÃÇÔ­À´µÄÎÊÌ⣬93.5»¯³É¸¡µãÐÍ9.35*10^1£¬Õâʱ9.35СÊýµãºó¾«¶ÈΪ0£¬³É9£¬Òò´Ë×îºó±ä³É9*10^1=90¡£
ÀàËƵģ¬ÎÒÃÇ¿ÉÒÔÉè¼Æ³Éfloat(10)£¬ÄÇôint(10*0.30103)=3£¬Òò´Ë£¬Èç¹û²åÈë93.5£¬¾ÍµÃ³ö9.35--¾«¶ÈΪ3-->9.350£¬9.350*10^1=93.5¡£Èç¹û²åÈë13884.2£¬µÃ³ö1.38842--¾«¶ÈΪ3-->1.388£¬1.388*10^4=13880¡£


Ïà¹ØÎĵµ£º

jdbcÁ¬½ÓOracle

      ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
    ½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
    ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
    Ê×ÏÈ£¬Ô ......

Oracle Òƶ¯Êý¾ÝÎļþµÄ²Ù×÷·½·¨

½«±í¿Õ¼äºÍÊý¾ÝÎļþ´ÓÒ»¸öλÖÃÒƶ¯µ½ÁíÒ»¸öλÖõIJÙ×÷·½·¨
Ò»£® OFFLINE
OFFLINE ·ÖΪALTER DATABASE Óë ALTER TABLESPACE OFFLINE£¬
ËûÃǵÄÇø±ð²Î¿´blog£ºhttp://blog.csdn.net/tianlesoftware/archive/2009/11/29/4898800.aspx
°´Êý¾ÝÎļþÀ´£º
1.ÏȽ«ÏàÓ¦µÄÊý¾ÝÎļþ offline 
ALTER DATABASE DATAFILE 'D:\OR ......

Oracle sqlplus ³£ÓÃÃüÁî×ܽá

OracleµÄsql*plusÊÇÓëoracle½øÐн»»¥µÄ¿Í»§¶Ë¹¤¾ß¡£ÔÚsql*plusÖУ¬¿ÉÒÔÔËÐÐsql*plusÃüÁîÓësql*plusÓï¾ä¡£
ÎÒÃÇͨ³£Ëù˵µÄDML¡¢DDL¡¢DCLÓï¾ä¶¼ÊÇsql*plusÓï¾ä£¬ËüÃÇÖ´ÐÐÍêºó£¬¶¼¿ÉÒÔ±£´æÔÚÒ»¸ö±»³ÆΪsql bufferµÄÄÚ´æÇøÓòÖУ¬²¢ÇÒÖ»Äܱ£´æÒ»Ìõ×î½üÖ´ÐеÄsqlÓï¾ä£¬ÎÒÃÇ¿ÉÒÔ¶Ô±£´æÔÚsql bufferÖеÄsql Óï¾ä½øÐÐÐ޸ģ¬È»ºóÔÙ´ ......

oracle ͳ¼ÆÿÔÂÀÛ»ý¹ºÂòÈËÊý

oracle ¿ÉÓÐʲô·½·¨ ͳ¼ÆÿÔÂÀÛ»ý¹ºÂòÈËÊý
±ÈÈç˵ÓиöÃŵê 2008Ä깺ÂòÉÌÆ·µÄÈËÊý
±í:t_buy_log  ×ֶΠf_username Óû§Ãû³Æ;¹ºÂòʱ¼äf_buytime

1 Èç¹ûÊÇͳ¼ÆÿÔ¹ºÂòÈËÊý
select to_char(f_buytime,'yyymm'),count(distinct f_username)
from t_buy_log
group by to_char(f_buytime,'yyymm')
......

ORACLE control file

ÒÔǰתÔعýһƪ¹ØÓÚ±¸·ÝºÍ»Ö¸´controlfileµÄÎÄÕ£¬µØÖ·ÈçÏÂ
http://blog.csdn.net/wh62592855/archive/2009/11/20/4844506.aspx
¿ØÖÆÎļþµÄÖ÷ÒªÄÚÈÝ
½ñÌìͻȻÔÚÏ룬controlfileÀïµ½µ×°üº¬ÁËÄÄЩÐÅÏ¢£¬²éѯÁ˼¸¸öÏà¹ØµÄÊý¾Ý×ÖµäÊÓͼ£¬ÍøÉÏËÑÁËËÑ£¬ÏÖÔÚС×ܽáÒ»ÏÂ
Êý¾Ý¿âµÄÃû×Ö¡£¸ÃÃûÈ¡×Ô³õʼ»¯²ÎÊý˵Ã÷µÄÊý¾Ý¿âÃû×Ö»òCRE ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ