mysql中的DETERMINISTIC 和 READS SQL DATA等设置选型
(2011-01-15 12:56:54)
标签:
mysqlfunction触发器deterministic和readssqldata杂谈 |
分类: mysql |
-
The
DETERMINISTIC
and NOT DETERMINISTIC
characteristics indicate whether a routine always produces the same result for given inputs. The default is NOT DETERMINISTIC
if neither characteristic is given. To declare that a routine is deterministic, you must specify DETERMINISTIC
explicitly. -
The
CONTAINS SQL
,NO SQL
,READS SQL DATA
, andMODIFIES SQL DATA
characteristics provide information about whether the routine reads or writes data. Either NO SQL
or READS SQL DATA
indicates that a routine does not change data, but you must specify one of these explicitly because the default is CONTAINS SQL
if no characteristic is given.