»·¾³£º1.win2003server+oracle9i
2.oracle9i×Ö·û¼¯ÎªAMERICAN_AMERICA.WE8ISO8859P1
3.oracle sql developer°æ±¾ 1.5.5
ÏÖÏóÃèÊö: 1.ÔÚsql developer ÖвéѯoracleÖеÄij¸ö±í£¬ÖÐÎÄÈ«²¿ÏÔʾΪÂÒÂë¡£
2.ÔÚsql plusÖвéѯͬÑùµÄ±í£¬ÖÐÎÄÏÔʾÕýÈ·¡£
3.ÔÚpowerbulider¿ª·¢¹¤¾ßÖвéѯͬÑùµ ......
ÈÕÇ°ÓÃociº¯Êý²éѯoracleÊý¾Ýʱ³öÏÖ¸öÎÊÌ⣬¾ÍÊÇÔÚ²éѯµ½dateÀàÐ͵ÄÊý¾Ýʱ£¬Ê¹ÓÃpl/sql ²éѯoracle¿âÖеÄÊý¾ÝÏÔʾÊÇ
2009-9-29 12:12:12
µ«ÊÇͨ¹ýÓï¾äselect * from tablename ²éѯ£¬Ê¹ÓÃoci_fetch_array£¨£©º¯Êý»ñÈ¡µ½µÄ¸Ãʱ¼ä×ֶεÄֵȴÊÇ
30-9ÔÂ -09
ÇëÎÊÈçºÎ½«Õâ¸ö¸ñʽµÄ×Ö¶Îת³ÉÉÏÃæµÄ×ֶΣ¬»òÕßÈçºÎÔÚp ......
<?php
getenv("ORACLE_HOME");
$conn=ocilogon("test","test","test_db");
if($conn)
echo success;
else
echo fail;
?>
±¨ÒÔÏ´íÎó£º
Warning: ocilogon(): ......
Ô¾äÊÇÕâÑùµÄ£º
$sql = "SELECT * from `BadDut.user` WHERE `Account`='".strtolower($_POST["username"])."' ";
strtolowerÊÇphpµÄÒ»¸öº¯Êý£¬²»Çø·Ö´óСдµÄ¡£
Èç¹û°´ÕÕoracleµÄд·¨Ôõôд£¿Ð»Ð»£¡
ÒýÓÃ
Ô¾äÊÇÕâÑùµÄ£º
$sql = "SELECT * fr ......
2¸öÒ³Ã棺
conn.php
PHP code:
<?php
$con = oci_connect("finaltest","finaltestpw","(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.101.72)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ENGDB01)
))
&q ......
Conn.phpÒ³Ã棺
[code=php]
<?php
$con = oci_connect("finaltest","finaltestpw","(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.101.72)(PORT = 1521))
)
(CONNECT_DAT ......