in reply to Re: Sql table names
in thread Sql table names
Each key of the hash stores the table name and the name of column to be sorted (just in case sorting is required). The table names themselves are hardcoded and do not come from an external source. However, a table may be queried for its contents by supplying its name through an online form.
The hash I was talking about is as follows
So, instead of%table =( members => [ qw(members id) ], emails => [ qw(emails member_id)] };
It'sSELECT * from members
Does hashing the table names make sense?SELECT * from $table{'members'}[0]
One use I could think of is verifying the table's existence when it's being queried (as in an web application).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sql table names
by jZed (Prior) on Aug 16, 2004 at 07:32 UTC |