我正在尝试在MySQL中创建一个函数:CREATE FUNCTION F_Dist3D (x1 decimal, y1 decimal) DETERMINISTICBEGIN SET dist = SQRT(x1 - y1);END;#1064 - You havean error in your SQL syntax;
check
我尝试在MySQL中转换为小数,如下所示:我尝试将表中的行数(乘以1.5)转换为点后两位数的浮点数。它会产生一个错误:corresponds to your MySQLserver version for the right syntax to use
near 'CAST((COUNT(*) * 1.5) AS <