#sql

32 posts · Last used 2d

👋 Hi, Mastodon! This is SQLtest.online, a free SQL trainer that runs in your browser. • 480+ practice tasks with instant automatic checks • Real database engines: PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, Firebird, DuckDB • A step-by-step SQL course, a skills test and an interview simulator • No install, no paywall, open source Here we'll share new lessons, tasks and SQL tips. Questions welcome! https://sqltest.online #SQL #LearnSQL #PostgreSQL #MySQL #Database #Introduction
0
0
1
0

I do enjoy doing fun #SQL tricks to clean up a database. 😌

Fun fact: if you have a newline-separated list of identifiers you need to use in a query, you can turn it into comma separated by piping it to tr '\n' ','. Then you can use it in a SQL IN clause.

But beware that this only works if your list contains nothing but integers! Otherwise you need to wrap string quotes around the lines first, escape them, etc, lest you fall prey to SQL injection.

#database #programming

4
1
1
0
Replying to
Another fun fact: you can start a transaction, make some changes, check that the changes had the effect you intended, and then commit or rollback. Transactions aren't just for applications! You can use them interactively too. #SQL #database #programming
5
0
1
0
Replying to
Also, if you're a .NET developer unafraid of dragons and mountains of SQL, I'm looking for 1-2 of you! ⛰️🐉🤺 You'd get to work with @davidvedvick@fosstodon.org and @too_little_caffeine@dotnet.socialhttps://billee.applytojob.com/apply/vahnKtLmvK/Senior-Backend-NET-Developer #getfedihired #dotnet #sql
4
3
20
0