如何使 Mysql 中的整个表与 phpmyadmin 中另一表中的一个数据变量相关联?

发布于 2025-01-17 04:15:12 字数 1035 浏览 3 评论 0原文

期望的结果:

我希望ticket_table(ticket_table、ticket_description、type_menu、status_menu、priority_menu)中的所有变量一次与一个project_name相关联。我希望每次提交新的工单时,ticket_table 中的所有数据变量都将被提交并与项目名称相关联。

项目表

---------------------------------------
id |    project_name      | description
---------------------------------------
1  |   Project 1          | This is a description of what project one is
2  |   Project 2          | This is a description of what project two is
3  |   Project 3          | This is a description of what project three is

票证表

--------------------------------------------------------------------------
id | ticket_title | ticket_descr | type_menu | priority_menu | status menu
--------------------------------------------------------------------------
1  | Name of tik  | Desc of tik  | Issue     | Low           |  Open
2  | Name of tik  | Desc of tik  | Bug       | High          | Resolved
3  | Name of tik  | Desc of tik  | Other     | Med           | In Progress

Desired outcome:

I want all the variables from ticket_table (ticket_table, ticket_description, type_menu, status_menu, priority_menu) to correlate to one project_name at a time. I would like every time there is a new ticket submitted, all the data variables from ticket_table will be submitted and correlated to a project_name.

project_table

---------------------------------------
id |    project_name      | description
---------------------------------------
1  |   Project 1          | This is a description of what project one is
2  |   Project 2          | This is a description of what project two is
3  |   Project 3          | This is a description of what project three is

ticket_table

--------------------------------------------------------------------------
id | ticket_title | ticket_descr | type_menu | priority_menu | status menu
--------------------------------------------------------------------------
1  | Name of tik  | Desc of tik  | Issue     | Low           |  Open
2  | Name of tik  | Desc of tik  | Bug       | High          | Resolved
3  | Name of tik  | Desc of tik  | Other     | Med           | In Progress

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文