# 计税 每月生成工资单时,Joe 需要根据 employee 表的 salary 字段,计算出每个员工的所得税和税后工资, 因此他决定写一个 individual_income_tax 函数,根据睡前工资计算税额。不考虑实现逻辑,这个函数的声明应该是: ## 答案 ```mysql create function individual_income_tax(salary decimal(12, 4)) returns decimal(12, 4) deterministic begin -- ... end; ``` ## 选项 ### A ```mysql create store function individual_income_tax(salary decimal(12, 4)) returns decimal(12, 4) deterministic begin -- ... end; ``` ### B ```mysql create function individual_income_tax(salary decimal(12, 4)) deterministic begin -- ... end; ``` ### C ```mysql create function decimal(12, 4) individual_income_tax(salary decimal(12, 4)) begin -- ... end; ```