Sunday, September 14th 2025, 1:26pm UTC+2

You are not logged in.


TheChris

Administrator

Date of registration: Sep 1st 2001

Posts: 7,840

Bike: kein 2-rad-scheiss

1

Friday, March 31st 2006, 10:45am

SQL-Befehl zum Löschen von Datensätzen

Hallo. Ich spiel gerade mit nem phpBB forum rum und jetzt hab ich das problem, da son Bot drübergelaufen is und 300 User registriert hat.

Ich brauch jetzt nen SQL-Befehl, der alle Datensätze löscht, in denen im Feld 'user_website' was drinsteht.

Source code

1
DELETE FROM 'phpbb_users' WHERE 'user_website' =! ''


geht sowas?
  • Go to the top of the page

fwmone

Unregistered

2

Friday, March 31st 2006, 10:52am

Source code

1
DELETE FROM `phpbb_users` WHERE length(`user_website`) > 0 AND !IsNull(`user_website`)
  • Go to the top of the page

TheChris

Administrator

Date of registration: Sep 1st 2001

Posts: 7,840

Bike: kein 2-rad-scheiss

3

Friday, March 31st 2006, 10:53am

Quoted

Original von fwmone

Source code

1
2
3
DELETE FROM `phpbb_users` WHERE length(`user_website`) > 0 AND !IsNull(`user_website`)

DELETE FROM `phpbb_users` WHERE `user_lang`='english'


danke für die schnelle hilfe!!
  • Go to the top of the page

TheChris

Administrator

Date of registration: Sep 1st 2001

Posts: 7,840

Bike: kein 2-rad-scheiss

4

Friday, March 31st 2006, 11:02am

:daumen-falk: und funktioniert natürlich auch wunderbar.
  • Go to the top of the page

Rate this thread