On Sun, Mar 15, 2009 at 11:56 AM, P Kishor <punk.k...@gmail.com> wrote: > I am designing a database for carbon modeling. Many of the parameters > to be stored in the db have very long names... it is kinda > inconvenient to have column names such as > 'new_live_wood_Carbon_to_new_total_wood_Carbon', but I hate column > names such as 'nlivwdc2ntotwdc'. I may as well just call that column > 'a' and then have a lookup table which describes 'a' => 'Ratio of new > live wood Carbon to new total wood Carbon' along with possibly other > descriptors (some columns are a flag, that is, 0 or 1, while others > are integers or fractions, and so on). > > Any suggestions on how to embed this metadata in the table? Is the > following the best way -- > > CREATE TABLE foo ( > a REAL, -- Ratio of new live wood Carbon to new total wood Carbon > b INTEGER -- (minimum interval between disturbances) > ); > > And, how do I store metadata about the table itself? The following > doesn't stick in the schema -- > > -- The table 'foo' is blah blah > CREATE TABLE foo (); >
The following seems to work CREATE TABLE foo ( ----------------------- -- the table foo is about blah blah ----------------------- a, -- blah b -- blah ); The other question about column metadata is still looking for a suggestion. -- Puneet Kishor http://www.punkish.org/ Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ Carbon Model http://carbonmodel.org/ Open Source Geospatial Foundation http://www.osgeo.org/ Sent from: Madison WI United States. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users