Re: [mongodb-user] Mongo-DB Default Value?

Showing 1-1 of 1 messages
Re: [mongodb-user] Mongo-DB Default Value? Sammaye 5/22/13 4:21 PM
technically due to how drivers work and all that the default value is null however, since mongodb has no pre-defined schema there is no support for defining types of fields as you do in SQL. This sort of stuff is done on the spot in the application.


On 22 May 2013 23:17, Jake Steele <jake....@frozenmountain.com> wrote:
I have a Table (Collection) that is going to be 20,000 columns (keys) all with values.

My question is, when I am creating this table, can I specify default values for a column, so if it is left out it would be set to 0.

Is that possible? Even a null would be fine. 

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.