{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Guides","type":"markdown"},"seo":{"title":"SQL Workbench J","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"sql-workbench-j","__idx":0},"children":["SQL Workbench J"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.sql-workbench.net/"},"children":["SQL Workbench/J"]}," is a free, DBMS-independent, cross-platform SQL query tool. You can use SQL Workbench/J as SQL authoring tool to interactively develop SQL queries with Treasure Data."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This article is created using a Mac OS. Your screens may differ on Windows and Linux."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#install"},"children":["Install"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#download-treasure-data-jdbc-driver"},"children":["Download Treasure Data JDBC Driver"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#add-the-treasure-data-jdbc-driver"},"children":["Add the Treasure Data JDBC Driver"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#connect-to-treasure-data"},"children":["Connect to Treasure Data"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#issue-the-query"},"children":["Issue the Query"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"install","__idx":1},"children":["Install"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Download the latest SQL Workbench/J installer from below, and install the application."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.sql-workbench.net/downloads.html"},"children":["SQL Workbench/J: Download"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Follow the instructions at ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.sql-workbench.net/manual/install.html"},"children":["Installing and starting SQL Workbench/J"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SQL Workbench/J requires Java 7 or higher."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"download-treasure-data-jdbc-driver","__idx":2},"children":["Download Treasure Data JDBC Driver"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Download Treasure Data’s JDBC Driver from:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://repo1.maven.org/maven2/io/trino/trino-jdbc/423/trino-jdbc-423.jar"},"children":["JDBC Driver for Trino"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"add-the-treasure-data-jdbc-driver","__idx":3},"children":["Add the Treasure Data JDBC Driver"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["File"]}," at the top menu, and click ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Manage Drivers"]},". Edit the forms:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191007-182818.78b40d523b7ff17909b0e9da28ceabd7a5d012492c0e4cc25d4dffe736f3999d.60bcc915.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Name: Treasure Data"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Library: JDBC driver file path"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Classname: com.treasuredata.jdbc.TreasureDataDriver"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sample URL"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/hive/quickstart"},"children":["Hive"]},": jdbc:td://api.treasuredata.com/< database >;useSSL=true;type=hive"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/trino/quickstart"},"children":["Presto"]},": jdbc:td://api.treasuredata.com/< database >;useSSL=true;type=presto"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"connect-to-treasure-data","__idx":4},"children":["Connect to Treasure Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File"]}," at the top menu, and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect Window. Edit"]}," forms:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191007-183312.fef82be1bf98fb469229f601ed6f8c995dec0bbdc5def41e7bfd6d6d2c6606aa.60bcc915.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Name: Whatever you like"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Driver: Treasure Data"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["URL: jdbc:td://api.treasuredata.com/sample_db;useSSL=true"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Username: Your account email"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Password: Your account password"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read only: True"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OK"]}," to add the connection."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"issue-the-query","__idx":5},"children":["Issue the Query"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You’ll see a list of tables and its columns by GUI."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191007-183331.5e14dd62386cee28ebf4ac92562ee4213509b0720d2b174bbf866e39a4a12569.60bcc915.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click the Statement tab, and edit the SQL query to be thrown."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl + Enter"]}," after the query is ready, then the query runs and shows the results."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can check the progress of the query from ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.treasuredata.com/app/jobs"},"children":["Treasure Console"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191007-183350.9009926c9cf3162fddf9ee4d2d08649992b6a85078c201afda79c3a581a624f6.60bcc915.png","alt":""},"children":[]}]}]},"headings":[{"value":"SQL Workbench J","id":"sql-workbench-j","depth":1},{"value":"Install","id":"install","depth":1},{"value":"Download Treasure Data JDBC Driver","id":"download-treasure-data-jdbc-driver","depth":1},{"value":"Add the Treasure Data JDBC Driver","id":"add-the-treasure-data-jdbc-driver","depth":1},{"value":"Connect to Treasure Data","id":"connect-to-treasure-data","depth":1},{"value":"Issue the Query","id":"issue-the-query","depth":1}],"frontmatter":{"seo":{"title":"SQL Workbench J"}},"lastModified":"2026-06-01T09:09:59.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/tools/cli-and-sdks/sql-workbench-j","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}