在MariaDB中创建一个超类型语法错误

时间:2016-10-24 14:22:57

标签: sql syntax mariadb

我尝试从https://mariadb.com/kb/en/sql-99/udt-example/运行此示例查询:

CREATE TYPE book_udt AS -- the UDT name will be book_udt title CHAR(40), -- title is the first attribute buying_price DECIMAL(9,2), -- buying_price is the second attribute selling_price DECIMAL(9,2) -- selling_price is the third attribute NOT FINAL -- this is a mandatory Finality Clause METHOD profit( ) RETURNS DECIMAL(9,2); -- profit is a method, defined later

但是我收到语法错误。 MariaDB不支持像MySQL这样的超类型吗?根据文件,它确实...有人有超类型的经验,知道这里有什么问题吗?

0 个答案:

没有答案