这是我的测试结果
在数据库testdb里建一个什么都不做的测试用的存储过程,运行没问题在数据库testdb.test里也建一个这样的存储过程,运行时提示存储过程不存在

解决方案 »

  1.   

    你的这个数据库是怎么建立的?
    正常的create database是不能建立带 . 的数据库名称的
      

  2.   


    用这种方式就可以
    CREATE DATABASE `test.test`
      

  3.   

    use `test.test`
    call spname
    再试试
      

  4.   


    call  `test.test`.spname
      

  5.   

    use `testdb.test`
    call spname
      

  6.   

    先执行 use `testdb.test`

     call spname在MYSQL55下测试通过
    CALL `testdb.test`.ee你在MYSQL命令行下运行试试
    use `testdb.test`;
    call spname
      

  7.   

    这个是MySQL里的5.5之前的Bug,在5.5版本中已经修复了
    http://bugs.mysql.com/bug.php?id=61078结贴散分