{"id":207,"date":"2007-03-03T10:10:56","date_gmt":"2007-03-03T09:10:56","guid":{"rendered":"http:\/\/soci.hu\/blog\/index.php\/2007\/03\/03\/case-insensitive-kereses-firebirdben\/"},"modified":"2007-03-03T10:10:56","modified_gmt":"2007-03-03T09:10:56","slug":"case-insensitive-kereses-firebirdben","status":"publish","type":"post","link":"https:\/\/soci.hu\/blog\/index.php\/2007\/03\/03\/case-insensitive-kereses-firebirdben\/","title":{"rendered":"Case insensitive keres\u00e9s firebirdben"},"content":{"rendered":"<p>Mostan\u00e1ban n\u00e9ha r\u00e1n\u00e9zek a firebirdre, mert a c\u00e9ges programban ez m\u0171k\u00f6dik kliens oldalon.<\/p>\n<p>Most pl. case insensitive keres\u00e9sre van sz\u00fcks\u00e9g, file nevek \u00f6sszehasonl\u00edt\u00e1sa miatt, de term\u00e9szetesen csak indexxel gyors\u00edtott megold\u00e1s \u00e9rdekel.<\/p>\n<p>\u00dagy l\u00e1tom a fb alapban nem tud olyat, mint az SQL Server, hogy egy adott orsz\u00e1g szerinti rendez\u00e9st case insensitive m\u00f3don v\u00e9gezze el. A feladatot indexelt, sz\u00e1m\u00edtott oszloppal lehet <a href=\"http:\/\/www.destructor.de\/firebird\/caseinsensitivesearch.htm\">megoldani<\/a>.<\/p>\n<p>M\u00e9g nem pr\u00f3b\u00e1ltam ki, majd ha a koll\u00e9ga be\u00e9p\u00edti, elmes\u00e9lem megy-e rendesen.<\/p>\n<p>In Firebird 2.0 it is possible to create a so-called &#8220;Expression Index&#8221; on an UPPER() function call:<br \/>\nCREATE INDEX IDX_PERSON_LASTNAME ON PERSONS COMPUTED BY (UPPER (LAST_NAME COLLATE DE_DE))<\/p>\n<p>From now on, it is possible to search using exactly the same expression:<br \/>\nSELECT * FROM PERSONS WHERE UPPER (LAST_NAME COLLATE DE_DE) = UPPER(:SEARCH_STRING COLLATE DE_DE)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mostan\u00e1ban n\u00e9ha r\u00e1n\u00e9zek a firebirdre, mert a c\u00e9ges programban ez m\u0171k\u00f6dik kliens oldalon. Most pl. case insensitive keres\u00e9sre van sz\u00fcks\u00e9g, file nevek&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,39,4],"tags":[],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-adatbazisok","category-firebird","category-szakmai-elet"],"_links":{"self":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=207"}],"version-history":[{"count":0,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/207\/revisions"}],"wp:attachment":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}