Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

It is recommended that foreign keys save id or code.

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Today, when working on a project, I encountered importing a batch of data, but because the basic files (only user files, departmental files, etc.) have been re-imported, the foreign key id of the document can not be associated with the previous basic file data, which would not have happened if the foreign key had used code at that time.

In addition, it is suggested that there is a special table to manage the code prefix of each document.

It's better to id, save all the codes, all right.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report