Installation & Setup
Learn how to install SQLDeveloper on Windows and configure your first database connection.
Master database management with our comprehensive guides, API reference, and step-by-step tutorials. From basic SQL queries to advanced database optimization, everything you need is here.
Learn how to install SQLDeveloper on Windows and configure your first database connection.
Connect to MySQL, PostgreSQL, Oracle, or SQL Server databases with step-by-step instructions.
Familiarize yourself with SQLDeveloper's interface, including navigation, panels, and tools.
Master SELECT, INSERT, UPDATE, and DELETE statements with practical examples.
Navigate and understand database structures, tables, and relationships.
Import data from CSV, Excel, or other sources and export your query results.
Analyze execution plans and optimize your SQL queries for better performance.
Create, debug, and manage stored procedures and functions across different databases.
Implement robust backup and recovery procedures for your databases.
Manage database users, roles, and permissions with proper security practices.
Understand indexing types and strategies to improve query performance.
Monitor database performance and identify bottlenecks using built-in tools.
Create a new database connection
| Name | Type | Description | Required |
|---|---|---|---|
host |
string | Database server hostname or IP address | Yes |
port |
integer | Database server port number | Yes |
database |
string | Database name | Yes |
username |
string | Database username | Yes |
password |
string | Database password | Yes |
type |
string | Database type (mysql, postgresql, oracle, sqlserver) | Yes |
{
"host": "localhost",
"port": 3306,
"database": "mydb",
"username": "admin",
"password": "password123",
"type": "mysql"
}
{
"success": true,
"connectionId": "conn_123456",
"message": "Connection established successfully"
}
List all active connections
{
"connections": [
{
"id": "conn_123456",
"host": "localhost",
"database": "mydb",
"type": "mysql",
"status": "active",
"connectedAt": "2025-01-18T10:30:00Z"
}
]
}
Execute SQL query on specified connection
| Name | Type | Description | Required |
|---|---|---|---|
connectionId |
string | ID of the connection to use | Yes |
query |
string | SQL query to execute | Yes |
limit |
integer | Maximum number of rows to return | No |
timeout |
integer | Query timeout in seconds | No |
{
"connectionId": "conn_123456",
"query": "SELECT * FROM users WHERE active = 1 LIMIT 100",
"limit": 100,
"timeout": 30
}
{
"success": true,
"executionTime": 245,
"rowCount": 75,
"columns": ["id", "name", "email", "active"],
"rows": [
[1, "John Doe", "[email protected]", true],
[2, "Jane Smith", "[email protected]", true]
]
}
Get list of tables in database
| Name | Type | Description |
|---|---|---|
connectionId |
string | Connection ID |
schema |
string | Schema name (optional) |
Get column information for a specific table
{
"tableName": "users",
"columns": [
{
"name": "id",
"type": "int",
"nullable": false,
"primaryKey": true,
"defaultValue": null
},
{
"name": "email",
"type": "varchar(255)",
"nullable": false,
"primaryKey": false,
"defaultValue": null
}
]
}
Learn the fundamentals of SQL and write your first database queries using SQLDeveloper.
Design and create database tables, define relationships, and manage table structures.
Master the fundamental CRUD operations: Create, Read, Update, and Delete data.
Level up your SQL skills with joins, subqueries, and advanced filtering techniques.
Learn the principles of good database design and normalization techniques.
Master data migration between different formats and database systems.
Deep dive into query performance analysis, execution plans, and optimization techniques.
Create powerful database-side logic with stored procedures and user-defined functions.
Implement robust security measures and set up comprehensive auditing for your databases.
-- Basic SELECT
SELECT column1, column2
FROM table_name;
-- SELECT with WHERE
SELECT *
FROM table_name
WHERE condition;
-- SELECT with JOIN
SELECT t1.col1, t2.col2
FROM table1 t1
INNER JOIN table2 t2 ON t1.id = t2.id;
-- SELECT with GROUP BY
SELECT column, COUNT(*)
FROM table_name
GROUP BY column
HAVING COUNT(*) > 1;
-- Single row insert
INSERT INTO table_name (col1, col2, col3)
VALUES (value1, value2, value3);
-- Multiple row insert
INSERT INTO table_name (col1, col2)
VALUES (val1, val2), (val3, val4);
-- Insert from SELECT
INSERT INTO table2 (col1, col2)
SELECT col_a, col_b
FROM table1
WHERE condition;
-- Basic UPDATE
UPDATE table_name
SET column1 = value1,
column2 = value2
WHERE condition;
-- UPDATE with JOIN
UPDATE t1
SET t1.col1 = t2.col2
FROM table1 t1
JOIN table2 t2 ON t1.id = t2.id
WHERE t2.condition = true;
-- Basic DELETE
DELETE FROM table_name
WHERE condition;
-- DELETE with JOIN
DELETE t1
FROM table1 t1
JOIN table2 t2 ON t1.id = t2.id
WHERE t2.condition = true;
CREATE TABLE users (
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50) UNIQUE NOT NULL,
email VARCHAR(100) NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
is_active BOOLEAN DEFAULT TRUE
);
-- Aggregate Functions
SELECT COUNT(*), AVG(price), MAX(price), MIN(price)
FROM products;
-- String Functions
SELECT UPPER(name),
LOWER(email),
CONCAT(first_name, ' ', last_name) AS full_name,
SUBSTRING(description, 1, 100)
FROM users;
-- Date Functions
SELECT CURRENT_DATE,
CURRENT_TIMESTAMP,
DATE_FORMAT(created_at, '%Y-%m-%d'),
DATEDIFF(end_date, start_date) AS days_diff
FROM projects;
| Ctrl + Enter | Execute query |
| Ctrl + R | Execute selected text |
| F5 | Refresh connection |
| Ctrl + / | Comment/uncomment line |
| Ctrl + D | Duplicate line |
| Ctrl + N | New query window |
| Ctrl + W | Close current tab |
| Ctrl + Tab | Switch between tabs |
| F11 | Toggle fullscreen |
| Ctrl + P | Quick search |
| Ctrl + S | Save results |
| Ctrl + C | Copy selected cells |
| Ctrl + A | Select all results |
| Ctrl + F | Find in results |
| Type | Range | Description |
|---|---|---|
INT |
-2^31 to 2^31-1 | Standard integer |
BIGINT |
-2^63 to 2^63-1 | Large integer |
DECIMAL(p,s) |
Variable | Fixed-point number |
FLOAT |
Variable | Single-precision floating point |
DOUBLE |
Variable | Double-precision floating point |
| Type | Max Length | Description |
|---|---|---|
CHAR(n) |
n characters | Fixed-length string |
VARCHAR(n) |
n characters | Variable-length string |
TEXT |
65,535 bytes | Long text |
LONGTEXT |
4GB | Very long text |
| Type | Format | Description |
|---|---|---|
DATE |
YYYY-MM-DD | Date only |
TIME |
HH:MM:SS | Time only |
DATETIME |
YYYY-MM-DD HH:MM:SS | Date and time |
TIMESTAMP |
YYYY-MM-DD HH:MM:SS | Timestamp with timezone |
Server=localhost;Database=mydb;Uid=username;Pwd=password;Port=3306;
Host=localhost;Port=5432;Username=myuser;Password=mypassword;Database=mydb;
Server=localhost\SQLEXPRESS;Database=mydb;User Id=myuser;Password=mypassword;
Data Source=localhost:1521/XE;User Id=myuser;Password=mypassword;
Data Source=C:\path\to\database.db;Version=3;
Download SQLDeveloper and begin exploring its powerful features today.