Business data reading method and device based on sub-table and storage medium
The invention discloses a sub-table-based business data reading method and device and a storage medium, and the method comprises the steps: obtaining a tenant sub-table information table of a target tenant, and facilitating the configuration management of a business table of the tenant through the t...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a sub-table-based business data reading method and device and a storage medium, and the method comprises the steps: obtaining a tenant sub-table information table of a target tenant, and facilitating the configuration management of a business table of the tenant through the tenant sub-table information table; determining connection information of the target storage database according to the data source identifier, generating at least one key-value pair according to the logic table name and the real table name, and storing the connection information and the key-value pair into a thread local variable; obtaining a to-be-queried logic table name of the query statement, reading a thread local variable, and determining a target key value pair according to the to-be-queried logic table name and a logic table name in the key value pair, the real table name in the target key value pair is used for replacing the logic table name to be queried so as to read the service data of the service table |
---|