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

#   Auto Increment in the table hikashop\_category

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

9 years 11 months ago [\#258215](#258215) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Auto Increment in the table hikashop\_category](/forum/32-content-creation/888036-auto-increment-in-the-table-hikashop-category#258215 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.27 -- Browser(s) name and version -- : any  I want to modify the auto increment with this sequence after delete all custom categories in a built custom component:  $query = &quot;ALTER TABLE #&#95;&#95;hikashop&#95;category AUTO&#95;INCREMENT = 14&quot;;  But it seems it doesn't work properly.  It's the sentence fine?  Or I can't alter the auto increment in this table?  Thanks in advance.  -- Víctor")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.27
-- Browser(s) name and version -- : any

I want to modify the auto increment with this sequence after delete all custom categories in a built custom component:

$query = "ALTER TABLE #__hikashop_category AUTO_INCREMENT = 14";

But it seems it doesn't work properly.

It's the sentence fine?

Or I can't alter the auto increment in this table?

Thanks in advance.

-- Víctor

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg4MDM2LWF1dG8taW5jcmVtZW50LWluLXRoZS10YWJsZS1oaWthc2hvcC1jYXRlZ29yeT90bXBsPW1hcmtkb3du) 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
-
-

9 years 11 months ago [\#258218](#258218) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto Increment in the table hikashop\_category](/forum/32-content-creation/888036-auto-increment-in-the-table-hikashop-category#258218 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.27 -- Browser(s) name and version -- : any  I want to modify the auto increment with this sequence after delete all custom categories in a built custom component:  $query = &quot;ALTER TABLE #&#95;&#95;hikashop&#95;category AUTO&#95;INCREMENT = 14&quot;;  But it seems it doesn't work properly.  It's the sentence fine?  Or I can't alter the auto increment in this table?  Thanks in advance.  -- Víctor")*

Hi,

This looks fine to me. If that doesn't work, you have a category with an id higher than that or you've removed the auto increment from the table.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg4MDM2LWF1dG8taW5jcmVtZW50LWluLXRoZS10YWJsZS1oaWthc2hvcC1jYXRlZ29yeT90bXBsPW1hcmtkb3du) 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.042 seconds

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