Forum

Supprimer de nombre...
 
Notifications
Clear all

Supprimer de nombreux clients

6 Posts
2 Users
0 Reactions
3,004 Views
(@christophe37)
Posts: 3
Active Member
Topic starter
 
[#3083]

Bonjour

Je souhaiterai supprimer beaucoup de ligne d'un seul coup dans les clients,
car j'ai importé un fichier excel dans les clients et, toutes mes lignes sont vides.
Je pense que le format ne fonctionne pas et j'ai 5000 lignes a supprimer

Pouvez vous m'aider svp
Merci

:unsure:


 
Posted : 22 Feb 2016 19H08
(@babynus)
Posts: 14952
Member Admin
 

Please post in english


 
Posted : 22 Feb 2016 19H09
(@christophe37)
Posts: 3
Active Member
Topic starter
 

Sorry,
Hello
I should cancel a lot of line at one time
Because I import a file excel with a lot of cutomers.
And my projeqtor is empty.

I have 5026 line empty
Thank you


 
Posted : 23 Feb 2016 11H04
(@babynus)
Posts: 14952
Member Admin
 

Hi,
Customer has no specific action on insert.
So if yu're sure you did not use these elements, you can delete them in database :

delete from client;

will erase all customers.
but if you just want to target on specific range of ids :

delete from client where id>=xx and id<=yy;

will erase clients with ids from xx to yy.


 
Posted : 23 Feb 2016 11H30
(@christophe37)
Posts: 3
Active Member
Topic starter
 

Thank you 🙂

I think this solution is good:
but if you just want to target on specific range of ids :
DELETE FROM client WHERE id>=xx AND id=0001 AND id<=5065
SyntaxError: missing ; before statement

Help me please


 
Posted : 23 Feb 2016 14H22
(@babynus)
Posts: 14952
Member Admin
 

Hi,

You need a db management tool.
Best I recommand : phpMyAdmin.

But you can also use toad for MySql or mysql line command (for advanced users)


 
Posted : 24 Feb 2016 20H34
Share:

Scroll to Top