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

加载中…