Database 관리

데이타베이스 콘솔 기본 명령어 모음

jake_kim 2022. 1. 14. 16:15
반응형
  Oracle MySQL / MariaDB postgres Mongdb
접속   mysql -u id -p pwd psql -U postgres  
Exit   exit \q  
데이타베이스 목록   show databaes; \l
select 
* from pg_catalog.pg_namespace;
 
데이타베이스 선택   use db명 \c databasename  
테이블 목록     SELECT *
FROM pg_catalog.pg_tables
WHERE
schemaname = 'public'
AND tablename LIKE 'Weath%';
 
         

 

반응형