Input SQL
Column types are analyzed to suggest the most useful CASE patterns.
Generated Queries
Paste SQL and click Generate to see CASE WHEN statements.
Need to diff two schemas and generate migrations?
SchemaLens compares SQL schemas, detects breaking changes, and generates safe forward + rollback migrations — all in your browser.
Try SchemaLens Free