Reply to Re: Use DEFAULT CONSTRAINTs or BOUND DEFAULTs?

Your name:

Reply:


Posted by jsfromynr on 10/31/05 11:40

Hi There,
You mustnot take getdate() as the default date as it will become
difficult /impossible to find which date is entered by User and which
one is not specified by the user . You must provide constant in default
constraint not anything that keeps on changing .
Alter Table ourTable Add X int Default Cast(rand()*10 as Int) ---
Completly Wrong because different values will be assigned .
Similary
Alter Table ourTable Add X1 datetime Default getdate() --- Completly
Wrong because different values will be assigned .

With Warm regards
Jatinder Singh

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация