Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Is it possible to create (entity) tables with yEd?

0 votes
In particular, in an Entity Relationship diagram, how can I model tables that show attributes with their field details?
in Help by (3.4k points)
retagged by

1 Answer

+2 votes
 
Best answer
You can model the tables in an Entity Relationship diagram using labels with HTML markup inside. This allows you to easily show attributes with their field details.

The following HTML markup in a label creates a table that shows attribute names of an entity together with their field details:

<html><table>
<tr><td>wln_site_nbr</td><td>NUMBER(6)</td><td>&lt;&lt;PK>></td></tr>
<tr><td>wln_site_bldg_clli_cd</td><td>VARCHAR2(8)</td><td></td></tr>
</table>

You can use this markup in the second label of an "Entity with Attributes" symbol from the Entity Relationship palette section, for example:


Entity with some attributes and their field details

...but also in labels of any other node representation.

 

by [yWorks] (23.7k points)
edited by
Legal Disclosure | Privacy Policy
...