Mastering MySQL 4 [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Mastering MySQL 4 [Electronic resources] - نسخه متنی

Ian Gilfillan

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







DBI Utility Functions

The DBI package provides the DBI utility functions as well.


hash


$hash_value = DBI::hash($buffer [, $type]);

Returns a 32-bit integer value, which is the result of a hash algorithm specified by $type performed upon the buffer. A type of 0 (the default) performs a Perl 5.1 hash, with a negative result. If the type is 1, the Fowler/Noll/Vo algorithm is used.



looks_like_number


@bool = DBI::looks_like_number(@array);

Returns a Boolean array, with true for each element of the original array that looks like a number, false for each element that does not, and undef for elements that are empty or not defined.



neat


$neat_string = DBI::neat($value [, $maxlen]);

Formats and neatens the value and quotes string for display purposes, not for passing to the database server. If the maximum length is exceeded, the string will be shortened to $maxlen-4 and an ellipsis (...) will be added to the end. If $maxlen is not is not specified, then $DBI::neat_maxlen, which defaults to 400, will be used.



neat_list


  $neat_string = DBI::neat_list(\@listref [, $maxlen [, $field_sep]]);

Calls the neat() function for each element of the list and returns a string with all the elements separated by $field_sep, which defaults to a comma (,).



/ 229