Discussion: default value for bit
Afficher un message
Vieux 31/12/2007, 12h16   #2
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: default value for bit

On Sun, 30 Dec 2007 17:12:54 -0800 (PST), Junkone
<junkone1@gmail.com> wrote:

>When i try to change the default data. it throws error Invalid default
>value for 'scannable'
>
>ALTER TABLE dbtrader.alerts
> CHANGE scannable scannable BIT DEFAULT '1';


'1' is a text string.
I guess BIT will only accept numeric values 0 and 1,
without quotes.

HTH
--
( Kees
)
c[_] I'm fascinated by the way memory diffuses fact. (#125)
  Réponse avec citation
 
Page generated in 0,05150 seconds with 9 queries