Re: Trying to update existing prices and sizes in products table

2012-03-14 Thread Baron Schwartz
Matthew, The mistake seems to be in believing that the alias from the SELECT carries over and is used in the UPDATE. You need to add an alias to the UPDATE. You are referring to _import_products in the UPDATE, but you never define it as an alias. On Tue, Mar 13, 2012 at 10:30 PM, Matthew Stuart

Re: Trying to update existing prices and sizes in products table

2012-03-14 Thread Claudio Nanni
Matthew, Baron, I am actually a bit confused,* what has the SELECT to do with the UPDATE?* SELECT ProductSku, COUNT(ProductSku) _import_products FROM _import_products GROUP BY ProductSku; I think the problem is simply that you are using two relations (tables) that are effectively the same and yo

Free tickets to MySQL conference

2012-03-14 Thread Baron Schwartz
If you want to go to this year's MySQL conference like all the cool kids, now's your chance. Percona is giving away free tickets (and free books)! Details here: http://www.mysqlperformanceblog.com/2012/03/14/win-free-mysql-conference-tickets/ -- MySQL General Mailing List For list archives: http

ERROR 1146 (42S02): Table 'ois.metadata' doesn't exist

2012-03-14 Thread Adarsh Sharma
Dear All, Is there any way to recover data or only schema of corrupted innodb tables.My 4 innodb tables are coorupted in a database. mysql> show tables; +-+ | Tables_in_ois | +-+ | acos| | aros| | aros_acos