带有select语句的自定义函数应该怎么写
带有select语句的自定义函数应该怎么写,
CREATE FUNCTION f2(goodsname varchar(20))
RETURNS SMALLINT(5)
RETURN SELECT brand_name FROM tdb_goods WHERE goods_name=goodsname;
这样写显示错误
带有select语句的自定义函数应该怎么写,
CREATE FUNCTION f2(goodsname varchar(20))
RETURNS SMALLINT(5)
RETURN SELECT brand_name FROM tdb_goods WHERE goods_name=goodsname;
这样写显示错误
2015-04-22
举报