Creating an ERD in DBeaver

preview_player
Показать описание
Creating an ERD in DBeaver
Рекомендации по теме
Комментарии
Автор

The foreign key should be on your cartransactions table. So, the other way around, referencing the primary key (monthcode) of the months table. The cartransactions table thus gets its additional time details from the months table. The same applies to customers and salesperson.

stormglass
Автор

Hi Jean, Thank you, I am here for 2 reasons, I have a script when I clicked on ERD, I see that ERD is already generated enabling me to figure out the pesky primary, foreign keys. But when I wanted for another table, I could not get it auto generated. So I went to ERD and created a new one as you show and instead selected entire schema that hanged my Dbeaver with 550 MB memory and it went for hours and still hanging.

Questions:
1, Please may I know how to auto-generate ERD for the tables, I work on using SELECT?
2. How to ensure I create ERD map without hanging
3. I see that you are created ERD but if it is scema database, when I try to change the relationship, does it change the database?

granand
Автор

Very nice video. I really struggle connecting tables, I hope you make a video where you connect them in SQL scripts. For example:
alter table group add foreign key (course) references course (id_number)
It seems they never work for me, and when they do I always think that something is wrong :(

Josip
Автор

Ok, can I create an ERD to generate SQL?

JamesFraley