Execute triggers stored procedures on SqlFiddle. Mysql

前端 未结 1 1667
梦如初夏
梦如初夏 2020-12-03 03:36

Does SQL-fiddle facilitate execution of triggers/stored procedures?

I have been unable to execute even the simplest form of stored procedure on sqlfiddle

<         


        
相关标签:
1条回答
  • 2020-12-03 03:56

    Instead of using the delimiter option (which is not a real SQL statement, but rather only a command for the mysql command prompt) use the "Query Terminator" option on SQL Fiddle to establish your delimiter.

    For example:

    http://sqlfiddle.com/#!2/88fcf

    Note the // dropdown below the schema box? That's the SQL Fiddle equivalent to the mysql DELIMITER command.

    Longer example with queries in the stored procedure (note that within the stored procedure, ; is still used as a delimiter):

    http://sqlfiddle.com/#!9/4db78

    Full disclosure: I'm the author of SQL Fiddle.

    0 讨论(0)
提交回复
热议问题