사이트 내 전체검색
create 다중입력 방식
로빈아빠
https://cmd.kr/server/1081 URL이 복사되었습니다.

본문

한 라인 입력
mysql> create table table33 (number integer,name char(30));

다중 입력 1
mysql> create table table33
  -> (number
  -> integer,
  -> name
  -> char(30));

다중입력 2
mysql> create table table33
  -> (number integer,
  -> name char(30));

다중입력 1과 다중입력 2는 같은 동작을 취하며 ,아래는 잘못 만든 예 이다.
mysql> create table table33
  -> (field01 inte
  -> ger,
  -> field02
  -> char(30));

※ 쿼리도중에 명령이 틀렸을 경우 는 \c 를 하면 된다.

mysql> create table table33
  -> (number inte,
  -> \c
mysql>



관련 도움말을 볼려면 help 를 한다.

mysql> help
help    (\h)    Display this text
?      (\h)    Synonym for `help'
clear  (\c)    Clear command
connect (\r)    Reconnect to the server. Optional arguments are db and host
edit    (\e)    Edit command with $EDITOR
exit    (\)    Exit mysql. Same as quit
go      (\g)    Send command to mysql server
print  (\p)    print current command
quit    (\q)    Quit mysql
rehash  (\#)    Rebuild completion hash
status  (\s)    Get status information from the server
use    (\u)    Use another database. Takes database name as argument

Connection id: 49  (Can be used with mysqladmin kill)

mysql>

출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=myt&wr_id=24

댓글목록

등록된 댓글이 없습니다.

1,139 (8/23P)

Search

Copyright © Cmd 명령어 3.148.105.237