用量
view: view_name {
dimension: field_name {
string_datatype: unicode
}
}
|
階層
string_datatype |
可能的欄位類型
維度
接受
值 unicode
特別規則
僅適用於 type: string 的維度 (如果未指定 type,則為預設值)
|
定義
string_datatype 參數可讓您指定維度的字串值為萬國碼字元,這對於需要特殊篩選器處理方式的方言很有幫助。具體來說,您可以為含有 Unicode 字元的篩選器指定 string_datatype: unicode,適用於 Microsoft SQL Server 和 MySQL。適用情況:
- 適用於非拉丁文排序規則類型的 Microsoft SQL Server (MSSQL)
- MySQL 適用於變數字元 (NVARCHAR) 和固定數字字元 (NCHAR) 類型
string_datatype: unicode 參數僅適用於 type: string 維度 (這是 type 參數的預設值)。
範例
dimension: comments {
string_datatype: unicode
sql: ${TABLE}.comments ;;