MYSQL CLIENT ERROR : SQLSTATE[42000]: Syntax error or access violation: 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 '() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventens' at line 2 // SELECT id,tags,serial,ordre,nom,active,date_crea,date_modif,auteurid,lastauteurid,donnees,sku,type,stocktype,prixht,stock,stocktosent,stockuk,stockreal,ean,eanns,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 6 MONTH)
) AS sales6m FROM produitnss WHERE sku='HN005U' LIMIT 1 OFFSET 0
MYSQL CLIENT ERROR : SQLSTATE[42000]: Syntax error or access violation: 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 '() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventens' at line 2 // SELECT id,tags,serial,ordre,nom,active,date_crea,date_modif,auteurid,lastauteurid,donnees,sku,type,stocktype,prixht,stock,stocktosent,stockuk,stockreal,ean,eanns,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 6 MONTH)
) AS sales6m FROM produitnss WHERE sku='HN005U' LIMIT 1 OFFSET 0
MYSQL CLIENT ERROR : SQLSTATE[42000]: Syntax error or access violation: 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 '() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventens' at line 2 // SELECT id,tags,serial,ordre,nom,active,date_crea,date_modif,auteurid,lastauteurid,donnees,sku,type,stocktype,prixht,stock,stocktosent,stockuk,stockreal,ean,eanns,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 6 MONTH)
) AS sales6m FROM produitnss WHERE sku='HN005U' LIMIT 1 OFFSET 0
MYSQL CLIENT ERROR : SQLSTATE[42000]: Syntax error or access violation: 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 '() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventens' at line 2 // SELECT id,tags,serial,ordre,nom,active,date_crea,date_modif,auteurid,lastauteurid,donnees,sku,type,stocktype,prixht,stock,stocktosent,stockuk,stockreal,ean,eanns,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 1 MONTH)
) AS sales1m,(
SELECT SUM(quantite) FROM statventenss WHERE sku=produitnss.sku AND date_crea>=UNIX_TIMESTAMP(CURRENT() - INTERVAL 6 MONTH)
) AS sales6m FROM produitnss WHERE sku='HN005U' LIMIT 1 OFFSET 035.99€40.00€
Per saperne di più