Skip to content

Commit 694ed4b

Browse files
Include some mention of --skip-column-names
1 parent 2a8168d commit 694ed4b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ wp db query [<sql>] [--dbuser=<value>] [--dbpass=<value>] [--<field>=<value>] [-
342342
Executes an arbitrary SQL query using `DB_HOST`, `DB_NAME`, `DB_USER`
343343
and `DB_PASSWORD` database credentials specified in wp-config.php.
344344

345+
Use the `--skip-column-names` MySQL argument to exclude the headers
346+
from a SELECT query. Pipe the output to remove the ASCII table
347+
entirely.
348+
345349
**OPTIONS**
346350

347351
[<sql>]

src/DB_Command.php

+4
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ public function cli( $_, $assoc_args ) {
401401
* Executes an arbitrary SQL query using `DB_HOST`, `DB_NAME`, `DB_USER`
402402
* and `DB_PASSWORD` database credentials specified in wp-config.php.
403403
*
404+
* Use the `--skip-column-names` MySQL argument to exclude the headers
405+
* from a SELECT query. Pipe the output to remove the ASCII table
406+
* entirely.
407+
*
404408
* ## OPTIONS
405409
*
406410
* [<sql>]

0 commit comments

Comments
 (0)