Home > Backend Development > PHP Tutorial > Is it necessary to determine the database version_PHP tutorial

Is it necessary to determine the database version_PHP tutorial

WBOY
Release: 2016-07-13 10:50:50
Original
774 people have browsed it



Question
Is it necessary to determine the database version?
Solution
I saw it in a class. I wonder if it is necessary to make a judgment now?
Aren't there many people who still use pre-4.1 versions? if($this->version() >'4.1')

mysql_query("SET NAMES 'utf8'");


Copy code [ ]


Reference answer
It is necessary, some will use views, this is only available in 5.0 and above
Reference answer
Well, it is still necessary if you want your product to be portable. . . . .
Reference answer
Very necessary.
Reference answer
I didn’t understand enough, but now I understand, thank you!
Reference answer
I’m not sure about this, haha ​​
Reference answer
Is anyone still using versions below 4.1? Why?
Reference answer
Backwards compatible, necessary

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632594.htmlTechArticleQuestion Is it necessary to determine the database version? The solution was seen in a class, but I don’t know if it is necessary now Have you made a judgment? Isn’t there a lot of people using pre-4.1 versions? if($this-...
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