projects
/
Pman.Core
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
sql/images.sql
[Pman.Core]
/
mysql
/
person_get_action_type.sql
1
2
DROP FUNCTION IF EXISTS person_get_action_type;
3
4
DELIMITER $$
5
CREATE FUNCTION person_get_action_type(in_id INT(11)) RETURNS VARCHAR(32) DETERMINISTIC
6
BEGIN
7
8
DECLARE v_ret VARCHAR(32);
9
SET v_ret= '';
10
SELECT action_type INTO v_ret FROM Person WHERE id = in_id LIMIT 1;
11
RETURN v_ret;
12
END $$
13
DELIMITER ;