今天自己无聊写了看了一个查询需求随手写了一个sql语句,发现竟然不能运行,MySQL报[Err] 1305 - FUNCTION ceshi.nvl does not exist的错.才意识到自己写的是 orac中的sql,于是另写一条sql达到了目的,但是事后想了一下在mys中是否有同样功能的函数呢?经查:ifnull().亲测,另有发现: SELECT * FROM emp e where (e.COMM is null) or e.COMM<100; SELECT * FROM emp e
应用 MySQL 时,会遇到不能创建函数的情况.出现如下错误信息: ERROR 1418 : This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) 那是因为没有