zoukankan      html  css  js  c++  java
  • mysql——查看存储过程和存储函数——概念

    mysql中通过show status语句查看存储过程和函数的状态。

    语法格式:  show {  procedure  |  function }  status  [   like  ' pattern '   ];

    procedure:表示存储过程;

    function:表示存储函数;

     like  ' pattern ':用来匹配存储过程或者存储函数的名称;

    ---------------------

    示例;

    show procedure status like 'name_from_employee';

    show create procedure name_from_employee;

    ==================================================================

    ==================================================================

    mysql中用show  create语句查看存储过程和函数的定义。

    语法格式:show   create  {  procedure   |   function   }   sp_name;

    procedure:表示存储过程;

    function:表示存储函数;

    sp_name:表示存储过程或函数的名称;

    --------------------------

    举例;

    show function status like 'name_from_employee';

    show create function name_from_employee;

    ==================================================================

    ==================================================================

    从information_schema.Routines表中查看存储过程和函数的信息。

    存储过程和函数的信息都存储在information_schema数据库下的Routines表中。

    可以通过查询该表的记录来查询存储过程和函数的信息。

    语法格式: select  *  from  information_schema.Routines   where   TOUTINE_NAME  =  'sp_name';

    TOUTINE_NAME:字段中,存储的是存储过程和函数的名称;

    sp_name:表示存储过程和函数的名称;

  • 相关阅读:
    random、shutil、shevle、标准输入输出错误流
    Python中Json 和 pickle 详解
    Python 中的sys、os、os.path模块总结
    Python 中time,calendar,datatime模块总结
    包的概念和导入包的方法
    Python 中模块及其导入方式
    迭代器和生成器
    python 函数参数
    JAVA 配置Path环境变量
    腾讯云服务器简单配置web项目
  • 原文地址:https://www.cnblogs.com/xiaobaibailongma/p/12097993.html
Copyright © 2011-2022 走看看