Ask a simple question about mysql: mysql_select_db ('baidu'); mysql_query (& quot; DELETEFROM 'clicked' WHEREdate & lt; '$ date' & quot ;); mysql_select_db ('baidu1'); mysql_qu
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 '");
Is mysql_query executed above recently opened?
------ Solution --------------------
It is the last Database link each time, but why is it not used by the landlord?
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 '");
In this way, you don't have to worry about opening the database. it's absolutely safe,
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.