我试图从select语句调用用户定义的存储过程,它给我一个错误.但是,当我调用系统程序时,它工作得很好.有没有办法从select语句调用用户定义的过程.这是为了mysql
SELECT ID, email FROM user PROCEDURE simpleproc();
Run Code Online (Sandbox Code Playgroud)
给我一个错误ERROR 1106(42000):未知程序'simpleproc'
mysql> call simpleproc();
Run Code Online (Sandbox Code Playgroud)
查询OK,0行受影响(0.21秒)
在哪里
SELECT ID, email FROM user PROCEDURE ANALYSE();
Run Code Online (Sandbox Code Playgroud)
作品
我的域类中有6列.但是当scaffold设置为true时,我只在控制器列表上看到5列.我的数据库是mySql.当执行表时,使用正确的列数创建我的域类
class RouteDesc {
String routenumber
String routeoperator
String routeinstructions
Date validfrom
Date validto
String weekendavailablity
static constraints = {
routenumber blank:false, unique:true, display:true
routeoperator blank:false, display:true
routeinstructions blank:true, display:true
validfrom display:true
validto display:true
weekendavailablity display:true
}
//static belongs to = RouteId
String toString () {
return routenumber
}
}
Run Code Online (Sandbox Code Playgroud)
我的Controller类
class RouteDescController {
static scaffold = true
}
Run Code Online (Sandbox Code Playgroud)