Июля 30 2010 08:05:24
Навигация
· Главная
· Статьи
· Скачать
· Форум
· Ссылки
· Категории новостей
· Обратная связь
· Галерея
· Поиск
· Гостевая
· Коллекция аватар
· CMS AP-Fusion. Отличия от PHP-Fusion
· Javascript справочник
· Разное
Сейчас на сайте
· Гостей: 9

· Пользователей: 0

· Всего пользователей: 413
· Новый пользователь: Ruslik
Информеры
Загрузка файлов  +  -
Лента alipapa.ru
Смайлики прошлого века
Шаблоны для blog-fusion
Подъем почтового сервера на VdsPlanet.
Хостинг на VdsPlanet - месяц спустя.


Хостинг на VdsPlanet.
Где взять ТИЦ?

Апдейт Google Pagerank 4 апреля
Google Supplemental Index Ratio
И опять АП
АП ТИЦ - как всегда, неожиданно.

Заработай своим умом
Комплексная автоматизация предприятий возрождается
Модели поискового поведения и взаимодействия в Web

АП ПР
Geo-IP + Google Maps - по-моему, симпатично.

Теперь Снежинск.

Зачем Яндексу нужен АГС?
Работают ли ссылки?
WHM/cPanel - продолжаем описание.
АГС-17 или зеркало в пятнах
Ссылки  +  -
Блоги
Alipapa
» Блог Алипапы
lom
» Блог Лома

sesam_field_array

(PHP 3 CVS only)

sesam_field_array --  Return meta information about individual columns in a result

Description

array sesam_field_array ( string result_id )

result_id is a valid result id returned by sesam_query().

Returns a mixed associative/indexed array with meta information (column name, type, precision, ...) about individual columns of the result after the query associated with result_id.

Таблица 1. Mixed result set returned by sesam_field_array()

Array ElementContents
int $arr["count"]Total number of columns in result set (or zero if this was an "immediate" query). SESAM "multiple fields" are "inlined" and treated like the respective number of columns.
string $arr[col]["name"]column name for column(col), where col is between 0 and $arr["count"]-1. The returned value can be the empty string (for dynamically computed columns). SESAM "multiple fields" are "inlined" and treated like the respective number of columns, each with the same column name.
string $arr[col]["count"]The "count" attribute describes the repetition factor when the column has been declared as a "multiple field". Usually, the "count" attribute is 1. The first column of a "multiple field" column however contains the number of repetitions (the second and following column of the "multiple field" contain a "count" attribute of 1). This can be used to detect "multiple fields" in the result set. See the example shown in the sesam_query() description for a sample use of the "count" attribute.
string $arr[col]["type"]PHP variable type of the data for column(col), where col is between 0 and $arr["count"]-1. The returned value can be one of

depending on the SQL type of the result. SESAM "multiple fields" are "inlined" and treated like the respective number of columns, each with the same PHP type.
string $arr[col]["sqltype"]SQL variable type of the column data for column(col), where col is between 0 and $arr["count"]-1. The returned value can be one of

  • "CHARACTER"

  • "VARCHAR"

  • "NUMERIC"

  • "DECIMAL"

  • "INTEGER"

  • "SMALLINT"

  • "FLOAT"

  • "REAL"

  • "DOUBLE"

  • "DATE"

  • "TIME"

  • "TIMESTAMP"

describing the SQL type of the result. SESAM "multiple fields" are "inlined" and treated like the respective number of columns, each with the same SQL type.
string $arr[col]["length"]The SQL "length" attribute of the SQL variable in column(col), where col is between 0 and $arr["count"]-1. The "length" attribute is used with "CHARACTER" and "VARCHAR" SQL types to specify the (maximum) length of the string variable. SESAM "multiple fields" are "inlined" and treated like the respective number of columns, each with the same length attribute.
string $arr[col]["precision"]The "precision" attribute of the SQL variable in column(col), where col is between 0 and $arr["count"]-1. The "precision" attribute is used with numeric and time data types. SESAM "multiple fields" are "inlined" and treated like the respective number of columns, each with the same precision attribute.
string $arr[col]["scale"]The "scale" attribute of the SQL variable in column(col), where col is between 0 and $arr["count"]-1. The "scale" attribute is used with numeric data types. SESAM "multiple fields" are "inlined" and treated like the respective number of columns, each with the same scale attribute.

Смотрите также sesam_query() for an example of the sesam_field_array() use.

Все функции PHP:
Авторизация
Логин

Пароль



Вы не зарегистрированы?
Нажмите здесь для регистрации.

Забыли пароль?
Запросите новый здесь.
Мини-чат
Вы должны авторизироваться, чтобы добавить сообщение.

06/07/2010 15:55
А может быть "гандидат"?

16/06/2010 13:55
правильно говорить так "кандибрат в депугады"

15/06/2010 22:18
Vveb--ws прочитал личку, спасибо. Я дальтоник немного, мне пофигу, Grin Исправлю.

27/05/2010 17:31
прямой номер телефона
Ну вот, с престой немного продвинулись, лед тронулся.

18/05/2010 23:27
Привет.

16/05/2010 17:06
Привет Алипапа, я тут глюку нашел в каталоге, щяс на форуме напишу.

08/05/2010 22:38
Скорее жив, а вам бан большой и толстый

08/05/2010 13:08
А [*****]почему[****
*] тут так[****] мало пишут?[*****] Сайт мертв? Smile

06/05/2010 16:03
Во, еще один кандидат в депутаты вылупился

05/05/2010 16:33
С * наступающим * праздником * победы * !!!

Последние статьи
· СМС и Вебмани
· TinyMCE для пользова...
· PCRE (Perl Compatibl...
· PCRE (Perl Compatibl...
· 510
Бытовая техника:  +  
1,810,994 уникальных посетителей Iceberg by Harly