powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / MySQL [игнор отключен] [закрыт для гостей] / Stored procedure statements ?
2 сообщений из 2, страница 1 из 1
Stored procedure statements ?
    #33475519
Global_one
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Всем привет!

Объясните в двух словах что означает в процедурах (вер.5) выражение:
Код: plaintext
1.
2.
deterministic
not deterministic
Спасибо тебе добрый человек.
...
Рейтинг: 0 / 0
Stored procedure statements ?
    #33476186
Yorick.kiev.ua
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
RTFM

http://dev.mysql.com/doc/refman/5.0/en/create-procedure.html

A procedure or function is considered “deterministic” if it always produces the same result for the same input parameters, and “not deterministic” otherwise. If neither DETERMINISTIC nor NOT DETERMINISTIC is given, the default is NOT DETERMINISTIC.

For replication purposes, use of the NOW() function (or its synonyms) or RAND() does not necessarily make a routine non-deterministic. For NOW(), the binary log includes the timestamp and replicates correctly. RAND() also replicates correctly as long as it is invoked only once within a routine. (You can consider the routine execution timestamp and random number seed as implicit inputs that are identical on the master and slave.)

Currently, the DETERMINISTIC characteristic is accepted, but not yet used by the optimizer. However, if binary logging is enabled, this characteristic affects whether MySQL accepts routine definitions. See Section 17.4, “Binary Logging of Stored Routines and Triggers”.
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / MySQL [игнор отключен] [закрыт для гостей] / Stored procedure statements ?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]