HSQLDB هسكلدب HSQLDB is an unique high performing, high quality Java based relational database which can be very easily extended with simple Java static functions. HSQLDB هسكلدب هي فريدة من نوعها عالية الأداء ، على اساس الجوده العالية جافا قواعد البيانات التي يمكن بسهولة جدا مع تمديد مهام بسيطة جافا ساكنة. Here we will see how you can easily extend the database capability with a real-life example. وهنا سوف نرى كيف يمكنك بسهولة توسيع قاعدة البيانات مع القدرة على الحياة الحقيقية مثلا.

I wanted to do a case-insensitive LIKE comparison, specifically get rows where the column data contains the target string. كنت اريد ان ادرس كل حالة على حدة ، مثل الحساسيه وبالمقارنة ، على وجه التحديد الصفوف للحصول على بيانات العمود حيث يتضمن سلسلة المستهدفة. The where clause using LIKE would be: “Column Name” LIKE ‘Target String’. اين شرط من شأنه ان يكون استخدام مثل : "اسم العمود" مثل 'الخيط الهدف'.

Unfortunately SQL LIKE is case sensitive. ومما يؤسف له ان مثل لغة الاستعلامات البنيويه هي القضية الحساسة. A simple way to accomplish this would be write a static function to do the comparison. طريقة بسيطة لانجاز هذا من شأنه ان يكون كتابة وظيفة ثابتة على ان تفعل المقارنة. He is the function I wrote in my Util.java file (a collection of static java utility functions) to do the comparison: وقال انه هو وظيفة لقد كتبت في بلدي util.java الملف (مجموعة من المهام فائدة ساكنة جافا) على ان تفعل المقارنة :

public static boolean containsMatch(String target, String search) { ساكنة البوليه containsmatch العامة (سلسلة الهدف ، بحث الخيط) (
return target.toLowerCase().contains(search.toLowerCase()); العودة target.tolowercase () ويتضمن (search.tolowercase ()) ؛
} )

To use it I executed the following SQL query: لاستخدامها الاول نفذ الاستعلام لغة الاستعلامات البنيويه التالية :

select distinct "e-Biz Manager" from Sheet where "com.taragana.myexcel.Util.containsMatch"("e-Biz Manager", ‘emily’) اختر متميزه "ه - مدير biz" من ورقة فيها "com.taragana.myexcel.util.containsmatch" ( "ه - مدير biz" ، 'اميلي')

Note that I enclosed the function invocation in double quote. علما بأنني الاحتجاج المغلقه وظيفة مزدوجة في الاقتباس. The column name is enclosed in double quotes because it contains space. العمود اسم المغلقه في ونقلت مزدوجة لانه يحتوي على الفضاء. The actual data is enclosed in single quotes. البيانات الفعليه هو المغلقه في واحدة بين مزدوجين.
Also note that I can shorten the name of the function invoked with an alias statement. اود ايضا ان اشير الى ان يمكن اختصار اسم وظيفة الاحتجاج مع بيان الاسم المستعار.

Isn’t this simplicity defined? لا تعرف هذه البساطه؟ I find HSQLDB an extremely versatile database which has served me over the years, highly recommended. HSQLDB هسكلدب اجد قاعدة بيانات متعددة للغاية التي عملت لي على مر السنين ، يوصي بشدة. And as for performance? وأما بالنسبة للاداء؟ It beats any other database hands down including but not limited to MySQL, Oracle etc. انه فوز اي قاعدة بيانات اخرى تصدر سبيل المثال لا الحصر ، الى الخلية ، اوراكل الخ.