-
AuthorPosts
-
nooran Developer
nooran
- Join date:
- June 2013
- Posts:
- 119
- Downloads:
- 8
- Uploads:
- 21
- Thanks:
- 32
- Thanked:
- 6 times in 1 posts
May 11, 2014 at 7:26 am #197608Hello,
I don’t know if here is the right place to ask this quotation, but I feel someone could know the right answer.
I’m using ja TelineII template.
Actually, there are more than 80,000 rows in my #_assets table, but I don’t want to delete all of them, I only need to delete the contents that have column name for example “com_content.article.24203”How is it to do that by using SQL query/queries ?
Is that possible?Many thanks for your great help and support.
Best Regards
Raffet Alipavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 11, 2014 at 8:10 am #534475Hi
Use this syntax
DELETE FROM `#_assets` WHERE `name` = “com_content.article.24203”
nooran Developernooran
- Join date:
- June 2013
- Posts:
- 119
- Downloads:
- 8
- Uploads:
- 21
- Thanks:
- 32
- Thanked:
- 6 times in 1 posts
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 11, 2014 at 3:11 pm #534503<em>@nooran 426436 wrote:</em><blockquote>Thanks @pavit
But what if I need to delete a range from “com_content.article.2” to “com_content.article.24203” ?</blockquote>
Hi
DELETE FROM `#_assets` WHERE `name` BETWEEN “com_content.article.2” AND “com_content.article.24203”
nooran Developernooran
- Join date:
- June 2013
- Posts:
- 119
- Downloads:
- 8
- Uploads:
- 21
- Thanks:
- 32
- Thanked:
- 6 times in 1 posts
May 11, 2014 at 4:40 pm #534510Hello pavit
It worked… but most of the times it gives this:
1 row deleted. ( Query took 0.0024 sec )pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 11, 2014 at 5:23 pm #534513<em>@nooran 426456 wrote:</em><blockquote>Hello pavit
It worked… but most of the times it gives this:
1 row deleted. ( Query took 0.0024 sec )</blockquote>You should do it with ID column and fix a max and min
DELETE FROM `#_assets` WHERE `id` >idnumber AND `id` < idnumber
1 user says Thank You to pavit for this useful post
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by nooran 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum