sql - What does the e flag and special characters do in mysql? -
i studying mysql http://dev.mysql.com/doc/refman/5.7/en/batch-mode.html . on second paragraph says:
if running mysql under windows , have special characters in file cause problems, can this:
c:\> mysql -e "source batch-file"
what special characters? if save file in notepad, there automatic special characters saved in file? how know whether there or not? hidden?
what
-e
flag do? can find explanation in mysql documentation?
-e
short --execute
, that's why had trouble finding it. http://dev.mysql.com/doc/refman/5.7/en/mysql-command-options.html#option_mysql_execute
execute statement , quit. default output format produced --batch. see section 5.2.4, “using options on command line”, examples. option, mysql not use history file.
a special charater needs escaped in sql query. know when run them because mysql produce errors.
Comments
Post a Comment