Home > Backend Development > PHP Tutorial > Summary of several ways to get the mysql version in php_PHP tutorial

Summary of several ways to get the mysql version in php_PHP tutorial

WBOY
Release: 2016-07-21 15:53:48
Original
1263 people have browsed it

select VERSION()

Current $res=mysql_query("select VERSION()");$row=mysql_fetch_row($res); This form calls SQL query to obtain.

If you want to query the version of the MYSQL support library (CLIENT) installed by PHP itself, you can use

A simpler way to use PHP's own functions mysql_get_server_info();

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318645.htmlTechArticleselectVERSION() current $res=mysql_query("selectVERSION()");$row=mysql_fetch_row($res) ;This form calls SQL query to obtain. If you query the MYSQL support library installed by PHP itself (CLIENT...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template