📅  最后修改于: 2022-03-11 15:05:03.639000             🧑  作者: Mango
-- Number to Varchar2
DECLARE
myString VARCHAR2(10);
myNumber NUMBER := 100.56;
BEGIN
myString := to_char(myNumber);
DBMS_OUTPUT.PUT_LINE(myString); -- 100,56
END;