Skip to main content

action de masse SQL plusieurs requêtes

More
3 years 5 months ago #350999 by erickb
-- HikaShop version -- : 4.7.2

Bonjour
j'essaye une action de masse SQL mais j ai une erreur

1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UPDATE #__hikashop_file SET `file_ordering`= 1 WHERE `file_path` LIKE "%-1-%"...' at line 2
Code:
UPDATE #__hikashop_file SET `file_ordering`= 0 WHERE `file_path` LIKE "%-0-%"; UPDATE #__hikashop_file SET `file_ordering`= 1 WHERE `file_path` LIKE "%-1-%"; UPDATE #__hikashop_file SET `file_ordering`= 2 WHERE `file_path` LIKE "%-2-%"; UPDATE #__hikashop_file SET `file_ordering`= 3 WHERE `file_path` LIKE "%-3-%";

merci pour helping :-)

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #351001 by nicolas
Bonjour,

Vous ne pouvez avoir qu'une requête par action. L'erreur que vous obtenez est justement à cause de cela.
Par contre, vous avez le droit d'avoir plusieurs actions "run mysql query" avec une requête chacune dans la même action de masse.
The following user(s) said Thank You: erickb

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #351008 by erickb
ha c'est parfait !
merci

Please Log in or Create an account to join the conversation.

Time to create page: 0.174 seconds
Powered by Kunena Forum