File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,10 @@ wp db query [<sql>] [--dbuser=<value>] [--dbpass=<value>] [--<field>=<value>] [-
342
342
Executes an arbitrary SQL query using ` DB_HOST ` , ` DB_NAME ` , ` DB_USER `
343
343
and ` DB_PASSWORD ` database credentials specified in wp-config.php.
344
344
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
+
345
349
** OPTIONS**
346
350
347
351
[<sql>]
Original file line number Diff line number Diff line change @@ -401,6 +401,10 @@ public function cli( $_, $assoc_args ) {
401
401
* Executes an arbitrary SQL query using `DB_HOST`, `DB_NAME`, `DB_USER`
402
402
* and `DB_PASSWORD` database credentials specified in wp-config.php.
403
403
*
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
+ *
404
408
* ## OPTIONS
405
409
*
406
410
* [<sql>]
You can’t perform that action at this time.
0 commit comments