title: create ER diagram from tabular schema of a database
body: <p>I have a database tables/fields excel file that shows the table name and schema for a database.</p>
  <pre><code>database   tablename    fieldname     datatype    foreignKeyTable    foreignKeyField
  
  1.System    sys_param   id             RAW(16)      
  1.System    sys_param   attr_id        RAW(16)        sys_attr          id
  1.System    sys_param   param_name     varchar2(50)     
  1.System    sys_attr    id             RAW(16)      
  1.System    sys_attr    attr_name      varchar2(50)     
  </code></pre>
  <p>What is a simple and fast way to create an ER diagram from this information?
  For example, the ER diagram from the above example would look like this:</p>
  <p><a href="https://i.stack.imgur.com/DkUU5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DkUU5.png" alt="er diagram" /></a></p>
  <p>It's okay if we don't have information about cardinality, just how different tables relate to each other will suffice.
  Any programmatic means would also be very helpful.</p>