Converting Postrges-specific query to Mysql
July 14, 2006 9:19 AM
Subscribe
I need help converting a Postgres-specific SQL query to MySQL
I'm in the middle of converting an application to use a Mysql back-end instead of Postgres. The database schema I got converted fairly easily, but one of the SQL queries that the app executes is failing, and I don't know how to write it to make MySQL happy. I'm assuming that the EXTRACT(epoch from task_id::abstime) is where it's failing.
Anyone with good Mysql-fu that can help?
SELECT EXTRACT (epoch from task_id::abstime),
task_name
FROM tasks WHERE task_id < now()
AND task_state = '%d';
posted by mcstayinskool to computers & internet (14 comments total)
1 user marked this as a favorite
posted by Skorgu at 9:27 AM on July 14, 2006