|
|||||||||||
|
Re: [NOVICE] create constant values
From: Michael Glaesemann <grzm(at)seespotcode.net>
Date: Fri Nov 23 2007 - 16:19:21 EST On Nov 21, 2007, at 13:16 , john@msasystems.net wrote: > Hi, You should have a table which enumerates your types, so you can do something like: SELECT *
AND score > 12; Magic numbers in a database (or anywhere else for that matter) is not a good idea. (Or use the enum types in 8.3, currently beta3)
Michael Glaesemann
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Received on Fri Nov 23 16:19:51 2007This archive was generated by hypermail 2.1.8 : Thu Jun 19 2008 - 00:04:14 EDT |
||||||||||
|
|||||||||||