Default language.

Changing existing Request ID field value format when the Request ID does not have a prefix


The following examples assume that the table is named T43 and that the field size is 8 characters. The 8 represents the number of characters to keep, starting from the right side of C1. C1 is originally 15 characters long. Make sure that the number of characters in the second parameter in the RIGHT function is equal to the new size of the C1 field and that the sum of the two numeric values in the SUBSTR function is 16 (1 greater than the original length of C1 ).

Oracle database scenarios

To add a prefix to the T schemaID table, use the following syntax:
update T43 set C1 = substr(C1,8,8);

To add a prefix to the B schemaID table, use the following syntax:
update B43 set C1 = substr(C1,8,8);

For the H schemaID table, use the following syntax:
update H43 set entryId = substr(entryId,8,8);

For the B schemaIDC fieldID tables, use the following syntax:
update B43C536870924 set entryId = substr(entryId,8,8);

For the T schemaID C fieldID tables, use the following syntax:
update T43C536870924 set entryId = substr(entryId,8,8);

Warning

Note

In the functions substr(C1,8,8) and substr(entryId,8,8), the first 8 represents the starting position of the characters to keep, and the second 8 is the number of characters to keep.

For more information about the SUBSTR function, see SUBSTR.

Microsoft SQL Server scenarios

To add a prefix to the T schemaID table, use the following syntax:
update T43 set C1 = RIGHT(C1, 8)

To add a prefix to the B schemaID table, use the following syntax:
update B43 set C1 = RIGHT(C1, 8)

For the H schemaID table, use the following syntax:
update H43 set entryId = RIGHT(entryId, 8)

For the B schemaIDC fieldID tables, use the following syntax:
update B43C536870924 set entryId = RIGHT (entryId, 8)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

Remedy Action Request System 20.02