을 나는과 같이 내장 된 테이블이 있습니다. 나는 이렇게 시도했다 :KDB
select from tab where col2 = "test"
그러나 항상 'length
오류를 반환합니다.
문자 배열의 값을 기반으로 쿼리를 수행하려면 어떻게해야합니까? 감사합니다
을 나는과 같이 내장 된 테이블이 있습니다. 나는 이렇게 시도했다 :KDB
select from tab where col2 = "test"
그러나 항상 'length
오류를 반환합니다.
문자 배열의 값을 기반으로 쿼리를 수행하려면 어떻게해야합니까? 감사합니다
사용 또는 부사의 like
를 사용해야합니다. 예 :
q)select from tab where col2 like "testchararr"
col1 col2
---------------------
testsym "testchararr"
q)select from tab where col2~\:"testchararr"
col1 col2
---------------------
testsym "testchararr"
q)select from tab where col2 like "test"
col1 col2
---------
q)select from tab where col2~\:"test"
col1 col2
---------
각 방법의 속도를 확인하는 것이 좋습니다. 사용중인 qsql의 예를 보려면 http://www.timestored.com/b/forums/topic/string-functions-like-search-replace-regex/
이 하나를 알아 낸 :
내가 대신 =
즉
select from tab where col2 like "test"