How to Avoid MySQL Skipping Indexes With ORDER BY

Sorting on a different column can kill index usage.

#mysql #orderby #index #howto #performance #schema

https://www.youtube.com/watch?v=INO1H3JEyCc

How to Avoid MySQL Skipping Indexes With ORDER BY #mysql

YouTube

How to Prevent ORDER BY in Subqueries Being Ignored

MySQL ignores ORDER BY inside subqueries without LIMIT.

#mysql #orderby #subquery #howto #bug #sql

https://www.youtube.com/watch?v=gqnEYUtf4Pk

How to Prevent ORDER BY in Subqueries Being Ignored #bug

YouTube

How to Fix LIMIT Without ORDER BY Chaos

LIMIT without order returns random rows.

#mysql #limit #orderby #howto #bug #consistency

https://www.youtube.com/watch?v=PO4yWy4U5pU

How to Fix LIMIT Without ORDER BY Chaos #orderby

YouTube

ORDER BY NULLs Go WHERE?!

ORDER BY with NULLs creates chaos! NULLs can go first or last depending on database. This breaks sorting logic! Watch!

#sql #sqltricks #database #sqltutorial #orderby #nullhandling #sqlquiz #codingchallenge #sqlshorts #sqlbugs #sorting #sqlwtf

https://www.youtube.com/watch?v=TvSwjgh3tw4

ORDER BY NULLs Go WHERE?! #nullhandling

YouTube

SQL Injection In ORDER BY Drops Your Table?!

SECURITY NIGHTMARE! Everyone secures WHERE clause but ORDER BY is VULNERABLE! User input in ORDER BY can DROP TABLES! Even prepared statements won't save you! Watch this attack!

#sql #sqlinjection #security #orderby #droptable #sqlvulnerability #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #injectionattack

https://www.youtube.com/watch?v=QeSaSAX24sQ

SQL Injection In ORDER BY Drops Your Table?! #droptable

YouTube
📎In the blog archives, a post from 2017 comparing Oracle and PostgreSQL #OrderBy
https://franckpachot.github.io/pages/2013-2018/postgres-vs-oracle-access-paths-iv
Postgres vs. Oracle access paths IV – Order By and Index

A blog post from 2017 about Postgres vs. Oracle access paths IV – Order By and Index