MySQL

Extraire une info du champ field de la table foo vers le fichier /tmp/bar.txt

SELECT field FROM foo INTO OUTFILE '/tmp/bar.txt'

ou

mysql -u<user> -p<password> -e "SELECT field FROM foo" | grep ^field$ > /tmp/bar.txt
astuce/pense-bete-sql-php.txt · Dernière modification : 2018/02/02 09:31 de Thomas
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0