Tagged articles

computed column

1 articles · Page 1 of 1
21CTO
21CTO
Oct 28, 2015 · Databases

Block SELECT * Queries with a One‑Line Computed Column Hack

This article explains why using SELECT * is problematic and demonstrates a simple technique—adding a computed column that triggers a divide‑by‑zero error—to block SELECT * queries while still allowing column‑specific selections.

Database DesignSQLbest practices
0 likes · 3 min read
Block SELECT * Queries with a One‑Line Computed Column Hack