1. help 명령어로 아래와 현재 어떤 명령어 들이 있는지 확인 가능 오라클과 비교 해서 쓸만한것만
몇가지 소개
MariaDB [(none)]> help
General information about MariaDB can be found at
http://mariadb.org
List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
? (\?) Synonym for `help'.
clear (\c) Clear the current input statement.
connect (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
edit (\e) Edit command with $EDITOR. ### 오라클의 ed 명령어 쿼리편집 ###
ego (\G) Send command to mysql server, display result vertically. ### 결과값 수직 출력 쿼리\G 옵션붙여사용##
exit (\q) Exit mysql. Same as quit.
go (\g) Send command to mysql server.
help (\h) Display this help.
nopager (\n) Disable pager, print to stdout.
notee (\t) Don't write into outfile. ###오라클의 spool off ##
pager (\P) Set PAGER [to_pager]. Print the query results via PAGER.
print (\p) Print current command.
prompt (\R) Change your mysql prompt.
quit (\q) Quit mysql.
rehash (\#) Rebuild completion hash.
source (\.) Execute an SQL script file. Takes a file name as an argument. ### 오라클의 @ #######
status (\s) Get status information from the server.
system (\!) Execute a system shell command. ### 오라클의 !명령어 ###
tee (\T) Set outfile [to_outfile]. Append everything into given outfile. ### 오라클의 spool ####
use (\u) Use another database. Takes database name as argument.
charset (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.
warnings (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.