ÔÚ´æȡСÊý£¬ÀýÈç0.5µÄʱºò£¬ÎªÊ²Ã´´æÈ¡µ½Êý¾Ý¿âÖбä³É .5 µÄÐÎʽ£¿
½â¾ö·½°¸ÒѾÓÐÁË£¬ÎÒÖ÷Òª¹ØÐĵÄÊÇoracleΪʲô»áÕâô´æ´¢£¿
ÄãËù¿´µ½µÄÊÇ´æ´¢µÄÊý¾ÝµÄÏÔʾ·½Ê½£¬Ö»ÊÇÒ»¸ö±íÏ󣬲¢²»Ó°ÏìÊý¾ÝÔÚÊý¾Ý¿âÖеĴ洢
ÄãÊÇÓô洢¹ý³ÌoutputÊý¾Ý°É£¿ÓÃto_char¼´¿ÉÏÔʾΪÄãÏëÒªµÄ·½Ê½
²»ºÃÒâ˼£¬¸Õ²ÅÃèÊö´íÎó£¬ÊÇͨ¹ý³ÌÐò´ÓÊý¾Ý¿â¶ÁÈ¡ÕâÀàÊýÖµ»á³öÏÖÄÇÖÖÇé¿ö£¬ÇëÎÊÔÚÊý¾Ý¿âÖÐÒ²ÊÇ°´ÕÕÕâÖÖ.*¸ñʽ´æ´¢µÄô£¿
..Òª»Ø´ðµÄ»°Ö»ÄÜ˵£¬ÊÇÒÔ2½øÖÆ´¢´æµÄ
ÒÔnumberÀàÐÍ´¢´æµÄ
²»ÊÇÄãÃèÊö´íÎó£¬ÊÇÄãûÃ÷°×£¬ÊÇ0.5»¹ÊÇ.5Ö»ÊÇÏÔʾµÄÎÊÌ⣬²»ÊÇ´æ´¢µÄÎÊÌâ
Ò»°ãÔÚsqlplusºÍÆäËûµÚÈý·½¹¤¾ßÔËÐÐsqlÓï¾äʱ£¬Ä¬ÈÏÏÔʾµÄÊÇ0.5£¬´æ´¢¹ý³ÌµÄÊä³öÀÏÔʾ.5
˵µÄÌ«ºÃÁË
ÍêÈ«ÕýÈ·£¡
¶¥
ΪʲôÎÒµÄsqlplusÖÐÒ²ÏÔʾ.5£¬²»ÏÔʾ0.5 £¿£¿£¿
ÎÒÊÇÔÚPL/SQL DeveloperÖв鿴Êý¾Ý£¬ÏÔʾÊÇ0.5£¬Ö»ÊÇÓóÌÐò¶ÁÈ¡ÒÔºó£¬ÏÔʾµÄÊÇ.5
³ÌÐò¶ÁÈ¡µÄʱºò,ÔÚSQLÖÐÔö¼Ó,Èç:
Ïà¹ØÎÊ´ð£º
<?php
getenv("ORACLE_HOME");
$conn=ocilogon("test","test","test_db");
if($conn)
echo success;
&nb ......
oracleÌ«¹óÁË,Áìµ¼Èû»³Émysql
ÔÀ´µÄoracleÊDz¼ÖÃÔÚlinux·þÎñÆ÷ÉÏ,¿Í»§¶ËÓÃBCB¿ª·¢µÄ,ÔÚwindowsÏÂÔËÐÐ,µ«ÔËÐеĻúÆ÷ÉϱØÐë×°Ò»¸öoracleµÄ¿Í»§¶Ë
¿´ÁËÏ´úÂë,³ÌÐòÊÇͨ¹ý²éÕÒoracle¿Í»§¶ËÔÚ×¢²á±íÖеÄÊý¾Ý» ......
ÕâÊÇÎÒÔÀ´Á¬½ÓSQLµÄ´òÓ¡µÄ´úÂë
Connection1.Open "Provider=MSDataShape.1;Persist Security Info=True;Data Source=mm;User ID=sa;Password=sa;Initial Catalog=lc-liuh2;Data Provider=SQLOLEDB.1"Ê ......
ORACLE´Ó9201Éý¼¶µ½9208Ö®ºó
»·¾³±äÁ¿ÖÐORACLE_HOMEûÓÐÉèÖà ÊÖ¹¤Ìí¼Óºó
ϵͳ·þÎñÀïËùÓÐORACLE·þÎñ¶¼Æð²»À´
ÃüÁîÐÐÀïÊäÈë EXP»òÕßLSNRCTL±¨ÌáʾÎÞ·¨¶¨Î»³ÌÐòÊäÈëµã lxhlcmod ÓÚ¶¯Ì¬Á´½Ó¿â oranls9.dllÉÏ
......
±ÈÈçÎÒÓÐtestA¡¢testB¡¢testCÈý¸ö±í
ÎÒÏÖÔÚÐèҪдһ¸öÅú´¦Àí»òÕ߽ű¾¸ø±ðÈË ×÷ÓþÍÊÇÖ´ÐÐÕâ¶ÎÓï¾ä¿ÉÒÔÇå³ýÕâÈý¸ö±íÀïÃæµÄÊý¾Ý ¾ÍÊÇÒ»¸ö³õʼ»¯µÄÒâ˼
ÄÄλ¸ßÈË°ïÖúÏ°¡ Ò»¸öÊý¾Ý¿âС°×ÔÚ´ËÇó¾ÈÀ²
SQL code:
......