SQL by email
Send SQL wrapped in <sql> tags to:
run@sqlmail.dev
Quick examples
- Compose email
Check connection
Simple sanity check that returns the current timestamp.
<sql> SELECT NOW() AS now; </sql>
- Compose email
Create users table
Creates a basic users table if it does not exist.
<sql> CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(255) UNIQUE NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); </sql>
- Compose email
Insert sample users
Adds a couple of example rows to the users table.
<sql> INSERT INTO users (name, email) VALUES ('Alice Johnson', 'alice@example.com'), ('Bob Smith', 'bob@example.com'); </sql>
- Compose email
List users
Returns all users ordered by most recent.
<sql> SELECT * FROM users ORDER BY created_at DESC; </sql>
Add yourself
Type your name and we will prefill an email that inserts it into the users table.
Each email can include multiple <sql> blocks. Queries run top-to-bottom.
Tip: Run "Create users table" first if you do not have it yet.