mysql: DELIMITER syntax error at line 1

后端 未结 2 1224
忘了有多久
忘了有多久 2021-01-12 23:11

I try to add this function using the following SQL in phpmyadmin/MySQL

DROP FUNCTION IF EXISTS `__myv`;
DELIMITER ;;
CREATE   FUNCTION `__myv`(`a` int, `b`          


        
相关标签:
2条回答
  • 2021-01-12 23:46

    Even if DELIMITER is a console command, phpMyAdmin's import module has accepted it since many years. When opening a database and clicking on SQL, a query entered there is passed to the import module, so it should work (unless you have a very old phpMyAdmin version).

    0 讨论(0)
  • 2021-01-12 23:54

    DELIMITER is a Mysql console command, You can't use it in phpmyadmin. To set the delimiter in phpmyadmin, see this other answer

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