Ask the simple question about MySQL
mysql_select_db (' Baidu ');
mysql_query ("DELETE from ' clicked ' WHERE date < ' $date '");
mysql_select_db (' baidu1 ');
mysql_query ("DELETE from ' clicked ' WHERE date < ' $date '");
mysql_select_db (' baidu2 ');
mysql_query ("DELETE from ' clicked ' WHERE date < ' $date '");
Does the mysql_query here perform the above one recently opened?
------Solution--------------------
Is the last time the database link, but landlord why not so use
mysql_query ("DELETE from baidu.clicked WHERE Date < ' $date '");
mysql_query ("DELETE from baidu1.clicked WHERE Date < ' $date '");
mysql_query ("DELETE from baidu2.clicked WHERE Date < ' $date '");
So you don't have to worry about opening that database, it's absolutely safe, hehe,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.