[Gambas-user] Specifying NOT NULL on adding Index (gb.db)

Benoît Minisini g4mba5 at gmail.com
Sat May 7 18:44:46 CEST 2022


Le 07/05/2022 à 11:24, Safiur Rahman a écrit :
> Hi
> I meant to put option to specify NOT NULL while creating fields.
> 
> .Table.Fields.Add (gb.db)
> Sub Add ( Name As String, Type As Integer [ , Length As Integer, Default 
> As Variant, Collation As String ] )
> 
> should have an option to specify NOT NULL
> 
> The index will be NULL or NOT NULL accordingly
> 

Normally, as soon as a field has a default value ('Default' argument), 
it will have the 'NOT NULL' option.

Regards,

-- 
Benoît Minisini


More information about the User mailing list