You may use PowerDesigner for database design, but you find that the table design does not include Comment by default (as shown below), which is sometimes inconvenient.
This is configurable, but relatively complex. Click "Model" -> "Extended Model Definitions" on the toolbar.
Create a new record and click Properties.
Right-click on Profile and select "Add Metaclasses".
Select "Column",
Right-click the newly created Column and select "New" -> "Extended Attribute".
Enter the new extended attribute information, Name is the name (AttComment here), select "Computed" and "Read only",
Open the "Get Method Script" tab and replace the content of "%Get% = """ with "%Get% = Rtf2Ascii (obj.Comment)".
Click OK,
Select "Tools" -> "Display Preferences" in the toolbar and open Advanced.
Select Columns and click the magnifying glass button on the right.
Select the extended attribute name just created (here AttComment),
Comment will be displayed in the table design window.
Although the display of Comment can be realized through the above operations, I don't know why it is designed to be such a complicated configuration. It may be because the design angle is different, but at least it can be configured, which shows that the configuration is relatively flexible.
If you think this article is helpful, please feel free to click "Like" and "Reading" at the end of the article, or forward it directly to pyq,
Recently updated articles:
" Troubleshooting and Solution Paths to Scenarios with High Linux Disk IO Utilization "
" Can the size of SQL transactions exported by mysqldump be controlled? 》
" MySQL remote login prompts Access denied scenario "
" Usage scenarios of JDBC connection parameter useCursorFetch "
Recent hot articles:
" Recommend a classic paper on Oracle RAC Cache Fusion "
" The shock that the open source code of the "Red Alert" game brings to us "
Article classification and indexing:
《Classification and indexing of 1,300 articles on public accounts》