SQL

SQL snippets and guidance for database development. Covers key topics like choosing between single and multiple LINQ to SQL data contexts for your data layer architecture, and simulating Oracle-style rownum functionality in MySQL queries.

server

Rownum Simulation with MySQL

MySQL doesn't have a built-in ROWNUM function like Oracle, but you can simulate row numbering using user variables. I share the exact SQL technique for adding sequential row numbers to…