Home > Database > Mysql Tutorial > MySQL program option modifiers

MySQL program option modifiers

WBOY
Release: 2023-09-14 09:13:02
forward
1135 people have browsed it

MySQL 程序选项修饰符

Some options are "Boolean values" that control behaviors that can be turned on or off.

Example

Mysql client supports the -- column-names option, which is used to indicate whether to display a column name at the beginning of the query results.

By default, this option is enabled. But sometimes, it may be necessary to disable this feature. This could be when sending the output of mysql to another program that only wants to see the data and not the initial header row.

To disable a column name, options can be specified in any of the forms mentioned below −

Query

--disable-column-names
(or)
--skip-column-names
(or)
--column-names=0
Copy after login

--disable prefix, --skip prefix and =0 suffix are all has the same effect. They turn that option off.

The "enabled" form of this option can be specified in any of the ways mentioned below -

Query

--column-names
(or)
--enable-column-names
(or)
--column-names=1
Copy after login

The values ​​ON, TRUE, OFF and FALSE are recognized as Boolean options . These values ​​are not case sensitive.

If an option is prefixed with --loose, the program will not exit with an error if it does not recognize the option. Instead, it only issues a warning. The following example demonstrates the same -

shell> mysql --loose-no-such-option
Copy after login

Output

mysql: WARNING: unknown option '--loose-no-such-option'
Copy after login

When a user runs a program from multiple MySQL installations on the same machine and the options are listed in the options file , you can use the --loose prefix.

The above is the detailed content of MySQL program option modifiers. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template