答案选C ,
mysql> select * from information_schema.ROUTINES\G *************************** 1. row *************************** SPECIFIC_NAME: pay_check ROUTINE_CATALOG: def ROUTINE_SCHEMA: world ROUTINE_NAME: pay_check ROUTINE_TYPE: FUNCTION DATA_TYPE: float CHARACTER_MAXIMUM_LENGTH: NULL CHARACTER_OCTET_LENGTH: NULL NUMERIC_PRECISION: 9 NUMERIC_SCALE: 2 DATETIME_PRECISION: NULL CHARACTER_SET_NAME: NULL COLLATION_NAME: NULL DTD_IDENTIFIER: float(9,2) ROUTINE_BODY: SQL ROUTINE_DEFINITION: BEGIN DECLARE net_pay FLOAT(9,2) DEFAULT 0; SET net_pay=gross_pay - gross_pay * tax_rate; RETURN net_pay; END EXTERNAL_NAME: NULL EXTERNAL_LANGUAGE: NULL PARAMETER_STYLE: SQL IS_DETERMINISTIC: NO SQL_DATA_ACCESS: NO SQL SQL_PATH: NULL SECURITY_TYPE: DEFINER CREATED: 2014-12-05 09:54:59 LAST_ALTERED: 2014-12-05 09:54:59 SQL_MODE: NO_ENGINE_SUBSTITUTION ROUTINE_COMMENT: DEFINER: root@localhost CHARACTER_SET_CLIENT: utf8 COLLATION_CONNECTION: utf8_general_ci DATABASE_COLLATION: latin1_swedish_ci
[此贴子已经被作者于2014-12-22 11:43:26编辑过] |