Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Field's length

From: tim-johnsons:web at: 12-Dec-2005 11:35

* Silvia Brandimarte <brasilv-tin.it> [051212 05:03]:
> Hi List, > > I've got one, simple (hope), question for you. > > I need to manage input and I would like to know if 'field could be set with > a max length to make sure that when I'll write my data on the DB, strings > will be non longer than what defined in my table. > > If a refinement like this exists, how is called? If there's no such a > refinement is there a little function I can use to control my input or > should I write it alone? > > Thank you, Silvia
Hi Silvia: From this posting I'm not sure which DB scheme you are using. There are many different approaches to use, most Databases have field descriptions which contain sizes: example: in Mysql char(30) One could query the database description, then parse the field/column description. So, first tell us what DB interface you're using. HTH tim
> -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- Tim Johnson <tim-johnsons-web.com> http://www.alaska-internet-solutions.com