Marek Kotowski wrote:
No, I don't think there is such syntax.
It'a pity. May be next SQL standard will propose
such formal syntax.
Well, there's no SQL syntax that explicitly declares a one-to-many or a
many-to-many relationship either. SQL has language the describe the
physical implementation of a relational database. What you're
describing is like an Entity Relationship diagram that describes the
_logical_ relationships, and then enables you to generates a database
based on that.
In fact, there exist several software products that do this.
For instance:
http://solutions.mysql.com/search.php?q=diagram
Regards,
Bill K.