我正在使用CRM Oracle On Demand,我遇到了区分大小写的问题。
您可以在此处查看请求:
"ContactWS_ContactQueryPage_Input" => array(
"ListOfContact" => array(
"Contact" => array(
"ContactId" => "",
"ContactFullName" => "",
"ContactFirstName" => "='".$firstname."'",
"ContactLastName" => "='".$lastname."'",
"CellularPhone" => "",
"WorkPhone" => "",
"WorkFax" => "",
"PrimaryCountry" => "",
"PrimaryZipCode" => "",
"PrimaryCity" => "",
"MrMrs" => "",
"JobTitle" => "",
"PrimaryAddress" => "",
"ContactEmail" => "",
"ContactType" => ""
)
),
"PageSize" => "100"
)
例如,如果在我的Oracle数据库中我有一个像这样的用户:
First Name : TOTO
Last Name : TATA
我尝试用以下方式提出请求:
$firstname = "toto"
或$lastname = "tAtA"
有没有办法关闭区分大小写?有任何想法吗 ?谢谢!
答案 0 :(得分:0)
alter session set nls_comp=ansi;
alter session set nls_sort=binary_ci;
请注意,这会对性能产生影响。可能不会使用某些索引。
PS:您还可以在创建索引时使用选项:NLS_SORT = BINARY_CI。