저는 JSL을 사용하여 MySQL 데이터베이스에서 데이터를 검색하고 있습니다. 그러나 SQL 쿼리의 필터링 조건이 기본적으로 대/소문자를 구분하지 않는 문제가 발생했습니다. 이는 필터 값의 경우에 관계없이 반환된 결과가 동일함을 의미합니다.
다음은 동일한 결과를 생성하는 두 개의 스크립트입니다.
스크립트 1:
New SQL Query(
Version( 130 ),
Connection(
"ODBC:DATABASE=my_database;DSN=my_dsn;PORT=3306;PWD=my_password;SERVER=localhost;UID=my_user;"
),
QueryName( "test_data" ),
Select(
Column( "Column1", "t1" ),
Column( "Column2", "t1" ),
Column( "Column3", "t1" )
),
From( Table( "test_data", Alias( "t1" ) ) ),
Where(
Not Or(
In List(
Column( "Column1", "t1" ),
{"A"},
UI( SelectListFilter( ListBox, Base( "Categorical" ) ) )
)
)
)
) << Run;
스크립트 2:
New SQL Query(
Version( 130 ),
Connection(
"ODBC:DATABASE=my_database;DSN=my_dsn;PORT=3306;PWD=my_password;SERVER=localhost;UID=my_user;"
),
QueryName( "test_data" ),
Select(
Column( "Column1", "t1" ),
Column( "Column2", "t1" ),
Column( "Column3", "t1" )
),
From( Table( "test_data", Alias( "t1" ) ) ),
Where(
Not Or(
In List(
Column( "Column1", "t1" ),
{"a"},
UI( SelectListFilter( ListBox, Base( "Categorical" ) ) )
)
)
)
) << Run;
How can I modify the New SQL Query function in my JSL scripts to make the filtering conditions case-sensitive?
도와주셔서 감사합니다!
JMP 직원이 더 잘 알고 있을 것입니다. 하지만 SQL 쿼리가 어떻게 생겼는지 아시나요? Custom SQL로 변환하시면 보실 수 있을 것 같습니다

또한 데이터베이스는 어떻게 구성되어 있습니까? 다른 애플리케이션에서 쿼리를 실행하면 동일한 결과가 나오나요? 저는 MySQL에 익숙하지 않지만 기본적으로 대소문자를 구분하지 않습니다 . https://dev.mysql.com/doc/refman/8.4/en/case-sensitivity.html
SQL 문은 다음과 유사합니다.
SELECT t1.`Column1`, t1.`Column2`, t1.`Column3`
FROM test_data t1
WHERE ( NOT ( ( ( t1.`Column1` IN ( 'A' ) ) ) ) ) ;
I know that adding the BINARY keyword in SQL can enforce case sensitivity, for example:
SELECT `Column1`, `Column2`, `Column3`
FROM `test_data` AS `t1`
WHERE BINARY `Column1` NOT IN ('A');And using the open Database function, I can execute SQL statements directly. However, I am particularly interested in whether the New SQL Query function in JSL can achieve the same case-sensitive effect.
도와 주셔서 감사합니다!
그런 상황을 처리하려면 사용자 정의 표현식을 추가해야 할 수도 있습니다.

또는


Got it, that would be similar to referencing SQL statements in open Database기능. 감사해요!