Powerdesingner learning-FAQs)

Source: Internet
Author: User

1. When the table creation script is generated by PDM, an error occurs when the field exceeds 15 characters (Oracle)
Unknown cause. The solution is to open the PDM, And the menu bar of the database appears. Go to database-edit current DBMS-script-objects-column-maxlen and increase the value (Originally 30 ), for example, change to 60. If the length of a table or other objects is incorrect, you can select the corresponding objects and change it accordingly!
Or use the following method:
When the table creation script is generated, the database generation prompt box will pop up: remove the options-check model, that is, do not check (not recommended )!
Alternatively, you can modify the c: \ Program Files \ Sybase \ powerdesigner trial 11 \ resource files \ DBMS \ oracl9i2. XDB file.
After modification, when CDM is converted to PDM, select "copy the DBMS definition in Model" to copy the resource file to the model.

 

2. How do I remove the double quotation marks of an object from the generated table creation script?

When CDM is enabled, go to tools-model options-naming convention and set the charcter case option of the name and code labels to uppercase or lowercase, as long as it is not a mixed case!
Alternatively, choose database-> edit current database-> script-> SQL-> Format. There is a casesensitivityusingquote, its comment is "determines if the case sensitivity for identifiers is managed using double quotes", which indicates whether double quotation marks are used to specify the case sensitivity of the identifier. You can see that the default value of values on the right is "yes ", change to "no!
Alternatively, when PDM is enabled, go to tools-model options-naming convention and set the charcter case option of the name and code labels to uppercase!

 

3. After creating a table, why does the warning of existence of index appear?

A table shoshould contain at least one column, one index, one key, and one reference.
This warning error does not occur if you do not check the existence of index!
This means that no index is created for the table, and at least one index is required for a table. This is a warning and it doesn't matter if you don't care!

4. When creating a table to modify a field, the code of the table changes as soon as the name is changed. How can I keep the code unchanged?

There is a button "=" on the right side of the name and code. If you do not need to synchronize, you can just pop up the button.
Tools-> General options-> dialog-> name to code sorting (remove)

5. When PDM is generated by CDM, the automatically generated foreign key is renamed.

PDM generation options-> detail-> FK index names is % refr % _ FK by default, changed to fk _ % refrcode %, where % refrcode % refers to the relationship code in CDM! In addition, the automatically generated parent field is set in PDM Generation Options> detail-> FK column name template. The default value is %. 3: parent % _ % column %. You can change it to PAR % column %, which indicates the parent field is used!

 

6. How to Prevent one-to-one relationship from generating two references (Foreign keys)

To define the dominant direction of the link, the dominant entity (with the d sign) becomes the parent table.
Double-click the one-to-one relationship in CDM-> detail-> dominant role to select the dominant relationship

 

7. Modify ReportsDefinition of some terms in the template

That is, the file: C: \ Program Files \ Sybase \ powerdesigner trial 11 \ resource files \ report documents ages \ Chinese. XRL
Tools-resources-Report languages ages-select Chinese-click Properties or double-click the target
Modify the names of some objects: Object Attributes \ physical data model \ column \
Foreignkey: foreign key
Mandatory: NULL
Primary: Primary Key
Table: Table
Replace "table" with "table" with "Search"
Modify the displayed content to another value: Values mapping \ lists \ Standard. Add the true conversion column as yes, and the false conversion column as null.
In addition, you can set the title information in report-title page.

 

8. Modify SQLWhen necessary, you can change the script format by modifying the template (Database-edit current database. For example:
Add a line "-- % colnname %" in the value of script-objects-column-add in order to display the column's Chinese and English comparisons in the script. 9. Double quotation marks are not case sensitive. Database(Such as Oracle), powerdesign automatically adds double quotation marks to table names and field names when creating scripts, and obtains case-sensitive information in the form of a "Strong string". This makes writing SQL statements a lot of trouble. Remove this additional feature:
Database-> edit current DBMS-> script.-> SQL-> Format-> casesensitivityusingquote
Select No10 as the parameter value on the right panel, and allow different entities to exist in model options with the same name. Remove the unique code of the data item and the option "allow reuse. Otherwise, the attributes with the same name in different entities are considered to be the same data object, and the attributes with the same name will be changed. In most cases, this feature is not required. On the contrary, it will cause troubles. However, if different tables are allowed to have the same field name, you must specify an alias for the duplicate field name when creating the view. There are advantages and disadvantages. 11. Remove the generate option from the general option of the object if the CDM-designed entity is not generated into a table in PDM. Check whether the same is true in PDM. 12. A table is associated with many tables in the physical model. For a table with many associations, you can use Ctrl + m to create multiple shortcuts for this table, use Ctrl + to drag the existing connection points. 13. If you need to add multiple objects of the same type at a time, you can right-click the model name in the left-side window and select the object to be added in List, in this way, you can use the downward key in a list, or you can conveniently copy and paste. by using the model check function, you can automatically check some problems in the model and select the automatic correction operation. sometimes the unique constraint keys automatically generated by powerdesigner are repeated, and the duplicate keys cannot be checked out. You need to modify them manually. 14. When editing a view to delete useless fields, the column tab cannot delete useless fields. You can only go to the SQL query page to edit useless fields, changing the field order on the column page cannot take effect in the actual SQL statement. when the as syntax is used in the SQL query field list The column names after "as" cannot be synchronized on the column page. As a result, the actual column names in the created view are inconsistent with the expected column names. you can check the preview label to quickly determine whether this happens. When there is any inconsistency, the SQL statement in the preview uses the format: Create or replace view V1 (column1, column2 ,..., columnn)... /if there is no inconsistency, the brackets are not generated. 15. View creation sequence definitions in the database may reference each other. views must be created strictly in sequence. Otherwise, errors may occur, however, powerdesigner cannot specify the order when generating view SQL statements, which is arranged by view name. in Oracle, you can specify the view attribute force to true. In this way, no error is reported even if the referenced object in the created view does not exist. 16. Change the display format of digoal to display schematools-> displ in digoal tables. Ay preferences-> object view-> table, select the owner. by default, this only changes the current digrams. If you want to change other existing diagrams together, click Apply to in the lower left corner and select the diagrams you want to change. If you want this change to be valid for all newly created Divs, click set as default. The default references line is ugly tools-> display preferences-> Format-> reference, click Modify, line style.-> corners, select the second or third line format, OK to exit. The number of columns in the table is too large. As a result, the objects in digoal are too long. Tools> display preferences> Object View> table columns, uncheck all columns, and select limit, the value is 10 or 20. You can also select PK columns to show only primary keys, or select key columns to show only primary keys, foreign keys, ALT keys, and other keys. Export the entire digoal or part of it as a graphic file and select the object to be exported (select multiple objects by shift or highlight multiple objects by clicking the mouse). If you export the entire digoal, press Ctrl +, edit-> export image, select JPEG or PNG as the file type, and save the file. Modify Multiple object formats at the same time. If you select multiple objects by using the Shift key, right-click the object and choose format from the shortcut menu. Multiple objects are not modified at the same time. However, you can use the CTRL + T shortcut after selecting multiple keys. Set Name conversion settings conceptual model entry only displays primary key settings allow relationship code rename settings modify model allow data item reusedata item seems to be a feature of version 11, the model of version 9.5 does not have this option to reuse data item (column) between different tables, so that one modification can be implemented and take effect everywhere. Reused data item. Modifying non-null constraints in one table is not reflected in other tables. You can delete duplicate projects in the list of data items view.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.