ServiceNow에서 String Type의 문자열 길이 확인

2547 단어 ServiceNow
Version: Newyork

적당히 확인



ServiceNow에서 String Type으로 문자열 길이 40의 Column에 값을 넣습니다.


ServiceNow에서 문자열 길이가 40인 경우 40byte가 아니라 40문자로 취급되는 것 같습니다.전각은 40문자까지 들어갔습니다. 했다


4byte 필요한 이모티콘도 깨졌습니다.


ServiceNow의 문자 코드는 default에서 utf-8이라고 생각합니다. Diagnostics Page에서 확인하면 DB는 Maria5.6.21과 같습니다.

Database overview
Type mysql
버전 5.6.21-MariaDB-log
Driver mariadb-jdbc
JDBC 1.1

덧붙여서 String Type의 최대 캐릭터 라인 길이는 시험했는데 MySQL의 LONGTEXT의 최대 길이(4,294,967,295)의 절반의 2,147,483,647문자와 같습니다(2,147,483,648로 변경하려고 하면 에러가 나옵니다)


String에서 256이상의 max length라고 DB적으로 mediumtext형이 되는 것 같아서 16,777,215 bytes까지 들어가는 것 같다



그리고 굉장히 놀랐습니다만 String으로 256이상의 max length라면 DB적으로 mediumtext형이 되는 것 같아서 16,777,215 bytes까지 들어간다고 하면 Incident의 Descriotion라든지 4,000이므로 16,777,215 bytes 들어갈 것

[Fields in ServiceNow accept string inputs greater than the sys_dictionary max_length value - Support and Troubleshooting]
htps : // 히. 세르 ゔ ぃ 세의 w. 이 m/kb_ゔぃ에w. 어때? syspa rm_Archi c ぇ = KB0685779
Fields in ServiceNow accept string inputs greater than the sys_dictionary max_length value.

This is expected behavior of the product.

When you create a string field in ServiceNow, the underlying column in database is created with a default data type based in part on the specified max_length value.

Small (40) = varchar(40)
Medium (100) = varchar(100)
Large (1000) = mediumtext
Extra Large (4000) = mediumtext

Any string field that is larger than varchar(255) is given the mediumtext data type. In the client, it will be represented as HTML textarea, instead of an HTML input. The maximum length of mediumtext is 16,777,215 bytes.

좋은 웹페이지 즐겨찾기