Subject | Re: [ib-support] Adding a default value for a field |
---|---|
Author | joseph osende |
Post date | 2002-03-21T16:57:01Z |
>How can I specify a default value for a field thatIn a delphi App, you can do it in a AfterInsert event
>already exists in a table ?
>The field is called IS_DELETED and is specified as
>follows:
>IS_DELETED VARCHAR(1),
>I want it to have a default value of F (for false)
of the table
You can also do it in a before insert / before update
trigger of the table, after checking the value of
the old value
Hope it helps
regards
Joseph
___________________________________________________________
Do You Yahoo!? -- Une adresse @... gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com