简体   繁体   English

phpMyAdmin 存储过程说明

[英]phpMyAdmin Stored Procedure Explanation

I have found the following option screen when creating a Stored Procedure in phpMyAdmin.在 phpMyAdmin 中创建存储过程时,我发现了以下选项屏幕。

准妈妈

Now I wonder what everything means.现在我想知道一切意味着什么。

I know the Routine name , Type , Parameters , Definition , Definer , Security type and Comment options.我知道Routine name , Type , Parameters , Definition , Definer , Security typeComment选项。

I however do not know what to do with Is deterministic and SQL data access .但是我不知道如何处理Is deterministicSQL data access I have tried to Google it, but couldn't find it.我试图谷歌它,但找不到它。 Can someone enlighten me what those values mean?有人可以启发我这些价值观的含义吗?

IS DETERMINISTIC:是确定性的:

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 in the routine definition, the default is NOT DETERMINISTIC.如果例程定义中既未给出 DETERMINISTIC 也未给出 NOT DETERMINISTIC,则默认值为 NOT DETERMINISTIC。

SQL DATA ACCESS: SQL 数据访问:

  • CONTAINS SQL indicates that the routine does not contain statements that read or write data. CONTAINS SQL 表示例程不包含读取或写入数据的语句。 This is the default if none of these characteristics is given explicitly.如果没有明确给出这些特征,则这是默认设置。 Examples of such statements are SET @x = 1 or DO RELEASE_LOCK('abc'), which execute but neither read nor write data.此类语句的示例是 SET @x = 1 或 DO RELEASE_LOCK('abc'),它们执行但既不读取也不写入数据。

  • NO SQL indicates that the routine contains no SQL statements. NO SQL 表示例程不包含 SQL 语句。

  • READS SQL DATA indicates that the routine contains statements that read data (for example, SELECT), but not statements that write data. READS SQL DATA 表示例程包含读取数据的语句(例如,SELECT),但不包含写入数据的语句。

  • MODIFIES SQL DATA indicates that the routine contains statements that may write data (for example, INSERT or DELETE). MODIFIES SQL DATA 表示例程包含可以写入数据的语句(例如,INSERT 或 DELETE)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM