Forum

Supprimer de nombre...
 
Notifications
Retirer tout

Supprimer de nombreux clients

6 Posts
2 Utilisateurs
0 Reactions
3,003 Vu
(@christophe37)
Posts: 3
Active Member
Début du sujet
 
[#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:


 
Posté : 22 Fév PM 19:022
(@babynus)
Posts: 14952
Membre Admin
 

Please post in english


 
Posté : 22 Fév PM 19:022
(@christophe37)
Posts: 3
Active Member
Début du sujet
 

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


 
Posté : 23 Fév AM 11:022
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 23 Fév AM 11:022
(@christophe37)
Posts: 3
Active Member
Début du sujet
 

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


 
Posté : 23 Fév PM 14:022
(@babynus)
Posts: 14952
Membre 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)


 
Posté : 24 Fév PM 20:022
Share:
Retour en haut