Free ToolNo signup · Runs in browser
SQL File Viewer
View SQL files with syntax highlighting for keywords and strings
Viewers
Lines: 31
Statements: 4
Size: 848 B
text-green-text-cyan-300">400">"text-zinc-text-cyan-300">500 italic">-- Create users table CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR(text-cyan-300">50) NOT NULL UNIQUE, email VARCHAR(text-cyan-300">255) NOT NULL UNIQUE, password_hash VARCHAR(text-cyan-300">255) NOT NULL, created_at TIMESTAMP DEFAULT NOW(), updated_at TIMESTAMP DEFAULT NOW() ); text-green-text-cyan-300">400">"text-zinc-text-cyan-300">500 italic">-- Create posts table CREATE TABLE posts ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE, title VARCHAR(text-cyan-300">255) NOT NULL, body TEXT, published BOOLEAN DEFAULT FALSE, created_at TIMESTAMP DEFAULT NOW() ); text-green-text-cyan-300">400">"text-zinc-text-cyan-300">500 italic">-- Seed users INSERT INTO users (username, email, password_hash) VALUES (text-green-text-cyan-300">400">'alice', text-green-text-cyan-300">400">'alice@example.com', text-green-text-cyan-300">400">'$2b$text-cyan-300">10$abc123'), (text-green-text-cyan-300">400">'bob', text-green-text-cyan-300">400">'bob@example.com', text-green-text-cyan-300">400">'$2b$text-cyan-300">10$def456'); text-green-text-cyan-300">400">"text-zinc-text-cyan-300">500 italic">-- Query example SELECT u.username, COUNT(p.id) AS post_count FROM users u LEFT JOIN posts p ON p.user_id = u.id GROUP BY u.username ORDER BY post_count DESC;
Related Tools
CSV Viewer
View and explore CSV files as a sortable, searchable table
Excel Viewer
View Excel and spreadsheet files as a paginated table
XML Viewer
View XML files with an interactive collapsible tree view
YAML Viewer
View and parse YAML files with a JSON tree or split view
SQLite Viewer
Browse SQLite databases, explore tables, and run SQL queries
SQL Formatter
Beautify & minify SQL queries instantly
Why use DBridge SQL Viewer?
Fast
Results appear instantly — everything runs in your browser.
Private & Secure
Your data never leaves your device. No account required.
Free Forever
No subscription, no sign-up, no paywalls.
Copy Anywhere
One-click copy for all outputs.