250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 스프링
- #자바가상머신
- 환경설정
- #오라클
- 설정
- Oracle
- 스프링부트
- 설치
- #이클립스
- Spring
- log4j
- #java
- springboot
- Like
- #Oracle
- Eclipse
- IntelliJ
- #eclipse
- log4j2
- #자바
- html
- #JVM
- 플러그인
- Plugins
- 소스코드 맵
- 이클립스
- 인텔리제이
- mariadb
- CodeGlance
- 오라클
Archives
- Today
- Total
커피와 개발자
[MySQL API] mysql_pconnect() 본문
728x90
MySQL 서버에 지속적인 연결(persistent connect)
【예제】
<html><body>
< ?
$db=mysql_pconnect("localhost","root","root_password");
mysql_select_db("mydb",$db);
$result=mysql_query("select * from employees",$db);
$myrow=mysql_num_rows($result);
echo $myrow;
echo "<br>";
mysql_free_result($result);
? >
</body></html>
【예제】
<html><body>
< ?
$db=mysql_pconnect("localhost","root","root_password");
mysql_select_db("mydb",$db);
$result=mysql_query("select * from employees",$db);
$myrow=mysql_num_rows($result);
echo $myrow;
echo "<br>";
mysql_free_result($result);
? >
</body></html>
728x90
'데이터베이스 > SQL' 카테고리의 다른 글
[MySQL API] mysql_query() (0) | 2011.03.03 |
---|---|
[MySQL API] mysql_ping() (0) | 2011.03.03 |
[MySQL API] mysql_num_fields() (0) | 2011.03.03 |
[MySQL API] mysql_list_tables() (0) | 2011.03.03 |
[MySQL API] mysql_list_processes() (0) | 2011.03.03 |
Comments