[Skip to main content](#vessel-content)

#   action de masse SQL plusieurs requêtes

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

3 years 7 months ago [\#350999](#350999) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[action de masse SQL plusieurs requêtes](/forum/5-support-en-francais-french-support-/906259-action-de-masse-sql-plusieurs-requetes#350999 "-- 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 #&#95;&#95;hikashop&#95;file SET &#96;file&#95;ordering&#96;= 1 WHERE &#96;file&#95;path&#96; LIKE &quot;%-1-%&quot;...' at line 2  merci pour helping :-)")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- 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 &#96;file\_ordering&#96;= 1 WHERE &#96;file\_path&#96; LIKE "%-1-%"...' at line 2*
Code:

UPDATE #__hikashop_file SET &#96;file_ordering&#96;= 0 WHERE &#96;file_path&#96; LIKE "%-0-%"; UPDATE #__hikashop_file SET &#96;file_ordering&#96;= 1 WHERE &#96;file_path&#96; LIKE "%-1-%"; UPDATE #__hikashop_file SET &#96;file_ordering&#96;= 2 WHERE &#96;file_path&#96; LIKE "%-2-%"; UPDATE #__hikashop_file SET &#96;file_ordering&#96;= 3 WHERE &#96;file_path&#96; LIKE "%-3-%";

merci pour helping ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA2MjU5LWFjdGlvbi1kZS1tYXNzZS1zcWwtcGx1c2lldXJzLXJlcXVldGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

3 years 7 months ago [\#351001](#351001) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[action de masse SQL plusieurs requêtes](/forum/5-support-en-francais-french-support-/906259-action-de-masse-sql-plusieurs-requetes#351001 "-- 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 #&#95;&#95;hikashop&#95;file SET &#96;file&#95;ordering&#96;= 1 WHERE &#96;file&#95;path&#96; LIKE &quot;%-1-%&quot;...' at line 2  merci pour helping :-)")*

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](/forum/user/4069-erickb "View erickb's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA2MjU5LWFjdGlvbi1kZS1tYXNzZS1zcWwtcGx1c2lldXJzLXJlcXVldGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

3 years 7 months ago [\#351008](#351008) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[action de masse SQL plusieurs requêtes](/forum/5-support-en-francais-french-support-/906259-action-de-masse-sql-plusieurs-requetes#351008 "-- 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 #&#95;&#95;hikashop&#95;file SET &#96;file&#95;ordering&#96;= 1 WHERE &#96;file&#95;path&#96; LIKE &quot;%-1-%&quot;...' at line 2  merci pour helping :-)")*

ha c'est parfait !
merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA2MjU5LWFjdGlvbi1kZS1tYXNzZS1zcWwtcGx1c2lldXJzLXJlcXVldGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
