Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL Error


sbmk1957

Recommended Posts

Posted

Hi people

Not exactly oscommerce related .. but i run an sql update in the db manually at the moment for stock quanities , incoming stock etc .. the following SQL used to work .. now that i moved to another server it doesnt so version change in Mysql seems the issue 

Current Mysql version is now 5.5.42-37.1 - i dont know the previous and can no longer access it ;/

any ideas gratefully accepted !

 

SQL statement

 

update products_to_wholesale
set expected_date = (select products_update.expected_date from products_update where products_update.products_id = products_to_wholesale.products_id)
where exists (select products_update.expected_date from products_update where products_update.products_id = products_to_wholesale.products_id)
 
and the error
 
#1064 - 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 ')' at line 2
 
Cheers
 
Steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...