Microsoft
Software
Hardware
Network
Question : SQL QUestion
We are moving a website from one server to another and the SQL version are different. We are getting an error
Error listing old tables: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE Name LIKE 'Members_tmp_%' AND Create_time < NOW() - INTERVAL 1 ' at line 2
This is the line that has that..
$result = mysql_query(
"SHOW TABLE STATUS
WHERE Name LIKE '{$table_prefix}%' AND
Create_time < NOW() - INTERVAL 1 HOUR");
Any idea what needs to be changed?
Answer : SQL QUestion
From which to which version are you moving?
check the documentation for "SHOW TABLE STATUS" here:
http://dev.mysql.com/doc/r
efman/5.0/
en/show-ta
ble-
status
.html
Random Solutions
Holiday Table: REDUX
Procedure not run correctly when parameter include non en character (SQL2005)
Incorrect Syntax creating SGL alias column name
Need help creating .NET dll or tlb for Excel 2003 VBA to use
DTS not running in job - SQL 2008
Checkbox next to <h1> element
How to create a command (union) from 2 databases?
Can’t run GUI using ssh –Y
How not to display Alerts of an update query when a form is opened
How Can I Get 2003 Outlook Client to Send Mail?