Create leading zero in Oracle

后端 未结 2 1219
一生所求
一生所求 2021-01-22 03:22

I am using Adempiere which has database Oracle

I have window called Stock Code from table called M_StockCode

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-22 03:55

    In Adempiere you manage the model via the Application Dictionary, it's the equivalent of the Data Dictionary used by relational databases.

    1. Login to Adempiere as the System Administrator.
    2. Select menu option Application Dictionary->Table & Column.
    3. Select the M_StockCode table and from its window, click on the Columns Tab.
    4. Here, select the Code column and if need be toggle to the Form view
    5. Now, from the drop-down select the Reference value of String and set a Length equal 2.
    6. Finally, hit the Synchronize Column button to have Admepiere modify the database.

    If this code is some kind of classification it might be useful to create new Reference type in the Application Dictionary and then you could point your column to it; this would ensure consistency, offering the user a selection to choose from rather than entering values. A Reference can be a List type which is handy for short lists or Table driven which is useful when the classification is more volatile and needs to maintained by the users.

提交回复
热议问题