I have a node with a parent_id, which may be None (for the root node).
 Can I make a SQL table constraint that says: 'there may only be one
node with the parent_id of None' (while it's fine if many nodes share
a parent_id that's not None)?

Thanks,
Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to