간단하게 SQL 등을 테스트할 때, MySQL 등을 직접 구축하거나 할 필요 없이 웹에서 간편하게 테스트할 수 있는 사이트를 소개한다.
주소
SQL Fiddle | A tool for easy online testing and sharing of database problems and their solutions.
Query Panel Use this panel to try to solve the problem with other SQL statements (SELECTs, etc...). Results will be displayed below. Share your queries by copying and pasting the URL that is generated after each run.
sqlfiddle.com
사용법
화면은 크게 메뉴바와 Schema Panel, SQL Panerl, 결과 화면으로 구성되어있다.
1. 메뉴바에서 원하는 데이터베이스 엔진을 선택한다.
MySQL, Oracle, PostgreSQL 등을 지원한다.
2. 활성화되어 있는 schema panel에 DDL을 실행한다.
쿼리를 입력하고 Build Schema 버튼을 클릭하면 오른쪽의 패널도 활성화되면서 DML 또한 실행할 수 있게 된다.
3. SQL 패널에 실행할 쿼리를 작성한 후, Run SQL 버튼을 클릭한다.
실행 결과를 아래에서 확인할 수 있다.
+ 결과 형식도 선택할 수 있다.
728x90