Comment trouver les doublons d’une table avec une requête SQL dans une base de données MySQL ?
Pour vérifier la présence ou l’absence de doublon dans une colonne d’une table MySQL, il existe une reqûete SQL permettant d’éviter de lire « manuellement » les données.
Compter les valeurs et trouvers les comptes supérieur à 1
SELECTCOUNT( nom) , nom
FROM`Matable`
GROUPBYnom
HAVINGCOUNT( nom) >1
L’exécution de cette requête affichera les noms présents plus d’une fois dans le domaine.
you need to extract the data in your http server log files and put it in a database to query it with your usual tools using SQL. this perl script does just this.
it was hard to find it, that’s why i put it here.
#!/usr/bin/perl -w
# Written by Aaron Jenson.
# Original source: http://www.visualprose.com/software.php
# Updated to work under Perl 5.6.1 by Edward Rudd
# Updated 24 march 2007 by Slim Amamou <slim.amamou@alpha-studios.com>
# - output SQL with the option '--sql'
# - added SQL create table script to the HELP
#
# NOTE : you need the TimeDate library (http://search.cpan.org/dist/TimeDate/)
# Lire la suite...
To show/list the users in a MySQL database, first log into your MySQL server as an administrative user, then run this MySQL query:
select * from mysql.user;
This MySQL query shows a large listing of MySQL user information, including user permission information, so you may want to trim down some of the fields to display. You can get a listing of the fields in the mysql.user table by running this command: