English 中文(简体)
利用绘画/DDL文字?
原标题:Use Draw.io to generate SQL / DDL scripts?

互联网上有许多资源,说明如何利用script子将表格输入ER diagram on Building.io。

例如,这里(但我找到大量资源):

https://desk.draw.io/support/solutions/articles/16000082007-use-the-sql-plugin-to-create-an-entity-relationship-diagram (SEE PARAGRAPH "Create an ER diagram from SQL code")

我无法找到任何倒退方向。 是否可能从通过绘画制作的ER diagram中制作DDL文字?

(插图) 出口作为微米和进口其他工具? ......

I m dealing with a ER diagram provided by suppliers in Draw.io format. I would like to avoid to handwrite all DDL... (my case is Oracle 12)

最佳回答

我愿回顾我的这一老职位,并通报我没有发现任何东西。

So the answer is NO. It s not possible to create DDL from design using Draw.IO

供应商被要求开始学习并在Oracle Sql开发商内部免费使用LQ模型。 它是完美的,因为与这一工具生成的图表可用来比较 d产生的图表,造成差异和增量文字。

问题回答

I've got a PR in with a plugins sql, DDL script from erdiagram. see:https://github.com/jgraph/drawio/pull/3092。 因此,如果并入(或根据封闭捐款准则重新撰写),现在有可能。 你们可以人工安装假肢(它的一个档案)。

Update:

New pr with one file change for import sql into diagram and export from diagram see: https://github.com/jgraph/drawio/pull/4122。 安装当地和一些装置说明非常容易。 由于“<代码>sql.js plugin”不再得到维护,而 draw项目是封闭的源头,因此Im预计会予以拒绝。

Example Usage:

您可在安排中找到DLL方案;插入

  • from sql or to sql buttons. drawio_sql_demo

  • To preview: “sql





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

难以执行 REGEXP_SUBSTR

I m 查询Oracle 10g。 我有两张表格(样本数据见下文)。 i m 试图提取一些领域

SQL Query Shortcuts

What are some cool SQL shorthands that you know of? For example, something I learned today is you can specify to group by an index: SELECT col1, col2 FROM table GROUP BY 2 This will group by col2

PHP array callback functions for cleaning output

I have an array of output from a database. I am wondering what the cleanest way to filter the values is example array Array ( [0] => Array ( [title] => title 1 ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

Running numbers in SQL

I have a SQL-statement like this: SELECT name FROM users WHERE deleted = 0; How can i create a result set with a running number in the first row? So the result would look like this: 1 Name_1 2 ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...