Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- program
- Book
- Italy
- essay
- Malaysia
- RFID
- Kuala Lumpur
- agile
- django
- Spain
- QT
- Python
- hbase
- comic agile
- programming_book
- erlang
- ubuntu
- Book review
- leadership
- MySQL
- Programming
- Software Engineering
- history
- web
- France
- management
- psychology
- Linux
- Java
- hadoop
Archives
- Today
- Total
monetdb 본문
http://www.monetdb.org/Documentation
console commands
db status 조회
$ sudo monetdb status
db 정지 & 삭제
$ sudo monetdb stop [database name]
$ sudo monetdb destroy -f [database name]
db 생성
$ sudo monetdb create [database name]
$ sudo monetdb start [database name]
$ sudo monetdb release [database name]
sql bulk 입력
$ mclient -h [server ip or name] -p [port number] -d [database name] -s [sql sentence]
$ mclient -h [server ip or name] -p [port number] -d [database name] < [sql file name]
system variable
sql>select * from var();
table 이름 보기
sql>select * from tables where system=false;
timestamp 형식 비교시 ''에 그대로 형식에 맞춰 쓰면 됨
sql>select * from [table name] where [filed name] > '2012-01-01 12:00:00.000';
string 길이: length()
sql>select * from [table name] where length([field name]) > [number];
$ mclient -d [database name]
sql>\? (help)
sql>\q (quit)
sql>\d (show tables)
sql>\d [table name] (desc table_name)
console commands
db status 조회
$ sudo monetdb status
db 정지 & 삭제
$ sudo monetdb stop [database name]
$ sudo monetdb destroy -f [database name]
db 생성
$ sudo monetdb create [database name]
$ sudo monetdb start [database name]
$ sudo monetdb release [database name]
sql bulk 입력
$ mclient -h [server ip or name] -p [port number] -d [database name] -s [sql sentence]
$ mclient -h [server ip or name] -p [port number] -d [database name] < [sql file name]
system variable
sql>select * from var();
table 이름 보기
sql>select * from tables where system=false;
timestamp 형식 비교시 ''에 그대로 형식에 맞춰 쓰면 됨
sql>select * from [table name] where [filed name] > '2012-01-01 12:00:00.000';
string 길이: length()
sql>select * from [table name] where length([field name]) > [number];
$ mclient -d [database name]
sql>\? (help)
sql>\q (quit)
sql>\d (show tables)
sql>\d [table name] (desc table_name)
Comments