June 2010
Intermediate to advanced
328 pages
7h 51m
English
Always spell out all the columns you need, instead of relying on wildcards or implicit column lists.
| Implicit-Columns/soln/select-explicit.sql | |
| | SELECT bug_id, date_reported, summary, description, resolution, |
| | reported_by, assigned_to, verified_by, status, priority, hours |
| | FROM Bugs; |
| Implicit-Columns/soln/insert-explicit.sql | |
| | INSERT INTO Accounts (account_name, first_name, last_name, email, |
| | password_hash, portrait_image, hourly_rate) |
| | VALUES ('bkarwin', 'Bill', 'Karwin', 'bill@example.com', |
| | SHA2('xyzzy'), NULL, 49.95); |
All this typing seems burdensome, but it’s worth it in several ways.
Remember poka-yoke?[20] You make your SQL queries more resistant to the errors and ...
Read now
Unlock full access