How to design a database schema for storing text in multiple languages?

前端 未结 2 1291
清歌不尽
清歌不尽 2021-01-13 07:20

We have a PostgreSQL database. And we have several tables which need to keep certain data in several languages (the list of possible languages is thankfully system-wide defi

2条回答
  •  一生所求
    2021-01-13 07:56

    I think it is best if you create two tables. One for languages, one for ids and so on. first_table( id ) second_table( s_id, id_first_table, language_id, language_text)

提交回复
热议问题