[Gambas-user] gb.db: NOT NULL fields?

Benoît Minisini gambas at ...1...
Mon Sep 8 22:34:12 CEST 2014


Le 08/09/2014 22:28, Tobias Boege a écrit :
> Hi,
>
> when creating a table in a database, I wonder if it's possible to have
> fields tagged as "NOT NULL" [0]. I don't know if it's there already or
> if it would be portable across other DMBS (just asking on behalf of
> another person).
>
> I would imagine a new optional argument to Table.Fields.Add()...
>
> Regards,
> Tobi
>
> [0] http://dev.mysql.com/doc/refman/5.1/en/create-table.html in MySQL.
>

To have a "NOT NULL" field, you just have to give its default value when 
creating it.

Regards,

-- 
Benoît Minisini




More information about the User mailing list