#1  
Old 12th December 2003, 11:43 AM
TC
 
Posts: n/a
Default Setting default values

how do you set a default value of 0 to a field type of "Real" using sql

E.g. ALTER TABLE TB ADD COL REAL DEFAULT ?


  #2  
Old 12th December 2003, 09:53 PM
Per Larsen
 
Posts: n/a
Default Re: Setting default values


"TC" <bob@bob.com> wrote in message news:3fd90147$1@wic040d....
> how do you set a default value of 0 to a field type of "Real" using sql
>
> E.g. ALTER TABLE TB ADD COL REAL DEFAULT ?
>


ALTER TABLE <TableName> ALTER COLUMN <ColumnName> SET DEFAULT 0;

- Per




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Change default host settings? Hannes Danzl[NDD] nexusdb.public.support.portal 4 7th May 2010 07:17 AM
Change default host settings? Hannes Danzl[NDD] nexusdb.public.support.portal 2 5th May 2010 08:06 AM
Problem setting timeout on trtchttpPortalClient Terry nexusdb.public.support.portal 9 16th February 2010 11:29 AM
Help setting up ODBC Justind nexusdb.public.support.odbc 1 28th September 2009 12:48 PM
Wrong values inserted Ole Willy Tuv nexusdb.public.support.sql 0 20th October 2003 09:19 PM


All times are GMT +11. The time now is 07:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.