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 |
Tags
- 설치
- 스프링부트
- springboot
- 이클립스
- #eclipse
- Spring
- IntelliJ
- 소스코드 맵
- #자바
- Plugins
- #java
- CodeGlance
- html
- #오라클
- 오라클
- log4j2
- Oracle
- #자바가상머신
- #JVM
- Like
- 인텔리제이
- 설정
- 스프링
- Eclipse
- mariadb
- 플러그인
- #이클립스
- log4j
- #Oracle
- 환경설정
Archives
- Today
- Total
커피와 개발자
[MySQL API] mysql_unbuffered_query() 본문
728x90
SQL 질의를 MySQL에 보내지만,
fetching이나 result row를 buffering하지 않는다.
【예제】
<html><body>
< ?
mysql_connect('localhost','root','root_password') or
die("Could not connect");
mysql_select_db("mydb");
$query="select * from employees";
$result=mysql_unbuffered_query($query);
while ($row=mysql_fetch_assoc($result)) {
echo $row["id"];
echo $row["name"];
echo "<br>";
}
? >
</body></html>
fetching이나 result row를 buffering하지 않는다.
【예제】
<html><body>
< ?
mysql_connect('localhost','root','root_password') or
die("Could not connect");
mysql_select_db("mydb");
$query="select * from employees";
$result=mysql_unbuffered_query($query);
while ($row=mysql_fetch_assoc($result)) {
echo $row["id"];
echo $row["name"];
echo "<br>";
}
? >
</body></html>
728x90
'데이터베이스 > SQL' 카테고리의 다른 글
[MySQL API] mysql_thread_id() (0) | 2011.03.03 |
---|---|
[MySQL API] mysql_tablename() (0) | 2011.03.03 |
[MySQL API] mysql_stat() (0) | 2011.03.03 |
[MySQL API] mysql_set_charset() (0) | 2011.03.03 |
[MySQL API] mysql_result() (0) | 2011.03.03 |
Comments