News for hackers. Stuff that matters.
Re:Use What Works: Prefixing Database Tables With 'tbl' by mongol on Wednesday October 10, 2012 @12:31PM (#4637040)
My reason for prefixing: makes it possible to use a table called Order (plus prefixing, naturally). Orders are a quite common thing to have in databases.
Re:Use What Works: Prefixing Database Tables With 'tbl' by adamzochowski on Wednesday October 10, 2012 @10:45PM (#4639127)
1) you can use plurals, so "select from orders"

2) typically there is no single order table. Most systems will have order_summary / order_details / order_items / order_packages . Think of handling a single order that has multiple products each of multiple quantities. And to complicate, fulfillment of product quantity requires multiple warehouses / shipments.

3) you can have a table called order, you just have to ensure to escape it properly, either double quotes or square brackets. Similarly table names can have spaces in them.