´ÙÀ½°ú °°Àº UDF°¡ Àִµ¥¿ä... ATOMICÀ̶ó´Â °Ô Àִµ¥...ã±äÇ߾.. ¿Ö ¾Æ·¡¿Í °°Àº FUNCTION¿¡¼
ATOMICÀ» ½á¾ßÇß´ÂÁö, ¶ÇÇÑ ATOMICÀÌ Á¤È®È÷ ¾î¶²±â´ÉÀÎÁö Á» ¾Ë·ÁÁÖ¼¼¿ä...
CREATE FUNCTION books_by_brand (v_brand_id INTEGER)
RETURNS TABLE( book_no CHAR(10), title VARCHAR(80), price DECIMAL(19,4))
LANGUAGE SQL
READS SQL DATA
BEGIN ATOMIC
RETURN ( SELECT book_no,title,price
FROM redbooks WHERE brand_id = v_brand_id );
END;
½ÇÇà : select * from table(books_ by_ brand(1389)) t1;
¸ð¸£½Ã³ª¿ä?