Home > Backend Development > PHP Tutorial > 问下关于mysql简单的有关问题

问下关于mysql简单的有关问题

WBOY
Release: 2016-06-13 10:26:11
Original
877 people have browsed it

问下关于mysql简单的问题
mysql_select_db('baidu');
mysql_query("DELETE FROM `clicked` WHERE date mysql_select_db('baidu1');
mysql_query("DELETE FROM `clicked` WHERE date mysql_select_db('baidu2');
mysql_query("DELETE FROM `clicked` WHERE date
这里的mysql_query是执行上面的吗 最近打开的?

------解决方案--------------------
是每次都是上次数据库链接,不过楼主为什么不这么用
mysql_query("DELETE FROM baidu.clicked WHERE date mysql_query("DELETE FROM baidu1.clicked WHERE date mysql_query("DELETE FROM baidu2.clicked WHERE date 这样你也不用担心是不是打开那个数据库了,绝对安全,呵呵,

Related labels:
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