cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Small thing, but does anyone else hate manually formatting values for SQL IN clauses?

sophi8876
New Contributor

This feels like one of those tiny annoyances that adds up.

 

I often copy a list of IDs from logs / Excel / emails and need to drop them into a MySQL or Trino IN (...) clause. Half the time I end up manually adding quotes or commas, or fixing formatting errors when the query fails.

 

I’ve started using a small online utility (unblockdevs.com) that just converts raw lists into properly quoted values. Nothing fancy, but it removes a bit of friction from daily work.

 

Curious how others handle this — scripts, editor macros, or just manual cleanup?

1 REPLY 1

K_Anudeep
Databricks Employee
Databricks Employee

Hey @sophi8876 ,

I generally use IDE' s like IntelliJ or VS Code and write a regex to add commas and quotes and it works for me and is faster enough as well

Anudeep

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now